Class Lists (3.15.8)

Stay organized with collections Save and categorize content based on your preferences.
public static class Lists : object

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<T>
rightList<T>
Returns
TypeDescription
Boolean
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<T>
Returns
TypeDescription
Int32
Type Parameter
NameDescription
T