Method SequenceEquals

| MongoDB CSharp Driver API Reference (original) (raw)

Namespace

MongoDB.Driver.Core.Misc

Assembly

MongoDB.Driver.dll

SequenceEquals(IEnumerable, IEnumerable)

Compares two sequences of end points.

public static bool SequenceEquals(IEnumerable<EndPoint> a, IEnumerable<EndPoint> b)

Parameters

a IEnumerable<EndPoint>

The first sequence of end points.

b IEnumerable<EndPoint>

The second sequence of end points.

Returns

bool

True if both sequences contain the same end points in the same order, or if both sequences are null.