Class Lists
Utility to compare if two Lists are the same, and the hash code of a List.
Inheritance
System.Object
Lists
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Google.Protobuf.Collections
Assembly: Google.Protobuf.dll
Syntax
public static class Lists
Methods
Equals<T>(List<T>, List<T>)
Checks if two lists are equal.
Declaration
public static bool Equals<T>(List<T> left, List<T> right)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<T> | left | |
System.Collections.Generic.List<T> | right |
Returns
Type | Description |
---|---|
System.Boolean |
Type Parameters
Name | Description |
---|---|
T |
GetHashCode<T>(List<T>)
Gets the list's hash code.
Declaration
public static int GetHashCode<T>(List<T> list)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<T> | list |
Returns
Type | Description |
---|---|
System.Int32 |
Type Parameters
Name | Description |
---|---|
T |