EndsWithExtensionEndsWithT Method (IEnumerableT, IEnumerableT, IEqualityComparerT) | 
 
            Determines whether the end of the first sequence is equivalent to
            the second sequence, using the specified element equality comparer.
            
 
    Namespace: 
   MoreLinq.Extensions
    Assembly:
   MoreLinq (in MoreLinq.dll) Version: 3.2.0+5205ea241d72b079436060d330cd5c2eae7cdcdf
Syntaxpublic static bool EndsWith<T>(
	this IEnumerable<T> first,
	IEnumerable<T> second,
	IEqualityComparer<T> comparer
)
<ExtensionAttribute>
Public Shared Function EndsWith(Of T) ( 
	first As IEnumerable(Of T),
	second As IEnumerable(Of T),
	comparer As IEqualityComparer(Of T)
) As Boolean
public:
[ExtensionAttribute]
generic<typename T>
static bool EndsWith(
	IEnumerable<T>^ first, 
	IEnumerable<T>^ second, 
	IEqualityComparer<T>^ comparer
)
[<ExtensionAttribute>]
static member EndsWith : 
        first : IEnumerable<'T> * 
        second : IEnumerable<'T> * 
        comparer : IEqualityComparer<'T> -> bool 
Parameters
- first
 - Type: System.Collections.GenericIEnumerableT
The sequence to check. - second
 - Type: System.Collections.GenericIEnumerableT
The sequence to compare to. - comparer
 - Type: System.Collections.GenericIEqualityComparerT
Equality comparer to use. 
Type Parameters
- T
 - Type of elements.
 
Return Value
Type: 
Booleantrue if 
first ends with elements
            equivalent to 
second.
            
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type 
IEnumerableT. When you use instance method syntax to call this method, omit the first parameter. For more information, see 
Extension Methods (Visual Basic) or 
Extension Methods (C# Programming Guide).
Remarks
See Also