Class ListEx
Assembly: RCaron.dll
Declaration
csharp
public static class ListEx
Declaration
csharp
public static class ListEx
Methods
RemoveFrom<T>(List<T>, int)
Declaration
csharp
public static void RemoveFrom<T>(this List<T> lst, int from)
Declaration
csharp
public static void RemoveFrom<T>(this List<T> lst, int from)
Parameters
Type | Name |
---|
System.Collections.Generic.List<<T>> | lst |
System.Int32 | from |
Type Parameters
Segment<T>(T[], Range)
Declaration
csharp
public static ArraySegment<T> Segment<T>(this T[] array, Range range)
Declaration
csharp
public static ArraySegment<T> Segment<T>(this T[] array, Range range)
Returns
System.ArraySegment<<T>>
Parameters
Type | Name |
---|
<T>[] | array |
System.Range | range |
Type Parameters
Segment<T>(ArraySegment<T>, Range)
Declaration
csharp
public static ArraySegment<T> Segment<T>(this ArraySegment<T> segment, Range range)
Declaration
csharp
public static ArraySegment<T> Segment<T>(this ArraySegment<T> segment, Range range)
Returns
System.ArraySegment<<T>>
Parameters
Type | Name |
---|
System.ArraySegment<<T>> | segment |
System.Range | range |
Type Parameters
FindIndex<T>(IList<T>, Predicate<T>)
Declaration
csharp
public static int FindIndex<T>(IList<T> array, Predicate<T> match)
Declaration
csharp
public static int FindIndex<T>(IList<T> array, Predicate<T> match)
Returns
System.Int32
Parameters
Type | Name |
---|
System.Collections.Generic.IList<<T>> | array |
System.Predicate<<T>> | match |
Type Parameters
FindIndex<T>(IList<T>, int, Predicate<T>)
Declaration
csharp
public static int FindIndex<T>(IList<T> array, int startIndex, Predicate<T> match)
Declaration
csharp
public static int FindIndex<T>(IList<T> array, int startIndex, Predicate<T> match)
Returns
System.Int32
Parameters
Type | Name |
---|
System.Collections.Generic.IList<<T>> | array |
System.Int32 | startIndex |
System.Predicate<<T>> | match |
Type Parameters
FindIndex<T>(IList<T>, int, int, Predicate<T>)
Declaration
csharp
public static int FindIndex<T>(IList<T> array, int startIndex, int count, Predicate<T> match)
Declaration
csharp
public static int FindIndex<T>(IList<T> array, int startIndex, int count, Predicate<T> match)
Returns
System.Int32
Parameters
Type | Name |
---|
System.Collections.Generic.IList<<T>> | array |
System.Int32 | startIndex |
System.Int32 | count |
System.Predicate<<T>> | match |
Type Parameters
IndexOf<T>(IList<T>, Predicate<T>)
Declaration
csharp
public static int IndexOf<T>(IList<T> array, Predicate<T> match)
Declaration
csharp
public static int IndexOf<T>(IList<T> array, Predicate<T> match)
Returns
System.Int32
Parameters
Type | Name |
---|
System.Collections.Generic.IList<<T>> | array |
System.Predicate<<T>> | match |
Type Parameters
IsAssignableToGenericType(Type, Type)
Declaration
csharp
public static bool IsAssignableToGenericType(Type givenType, Type genericType)
Declaration
csharp
public static bool IsAssignableToGenericType(Type givenType, Type genericType)
Returns
System.Boolean
Parameters
Type | Name |
---|
System.Type | givenType |
System.Type | genericType |
Expect<T>(object?)
Declaration
csharp
public static T Expect<T>(this object? obj)
Declaration
csharp
public static T Expect<T>(this object? obj)
Returns
<T>
Parameters
Type Parameters
NotNull(object?)
Declaration
csharp
public static object NotNull(this object? obj)
Declaration
csharp
public static object NotNull(this object? obj)
Returns
System.Object
Parameters
IsNumericType(Type)
Declaration
csharp
public static bool IsNumericType(this Type type)
Declaration
csharp
public static bool IsNumericType(this Type type)
Returns
System.Boolean
Parameters