Class Lists (3.23.0)

public static class Lists

Utility to compare if two Lists are the same, and the hash code of a List.

Inheritance

object > Lists

Namespace

Google.Protobuf.Collections

Assembly

Google.Protobuf.dll

Methods

Equals<T>(List<T>, List<T>)

public static bool Equals<T>(List<T> left, List<T> right)

Checks if two lists are equal.

Parameters
NameDescription
leftList
rightList
Returns
TypeDescription
bool
Type Parameter
NameDescription
T

GetHashCode<T>(List<T>)

public static int GetHashCode<T>(List<T> list)

Gets the list's hash code.

Parameter
NameDescription
listList
Returns
TypeDescription
int
Type Parameter
NameDescription
T