Class Arrays
Inheritance
System.Object
Arrays
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Lucene.Net.dll
Syntax
public static class Arrays
Methods
|
Improve this Doc
View Source
AsList<T>(T[])
Declaration
public static List<T> AsList<T>(params T[] objects)
Parameters
Type |
Name |
Description |
T[] |
objects |
|
Returns
Type |
Description |
System.Collections.Generic.List<T> |
|
Type Parameters
|
Improve this Doc
View Source
CopyOf<T>(T[], Int32)
Declaration
public static T[] CopyOf<T>(T[] original, int newLength)
Parameters
Type |
Name |
Description |
T[] |
original |
|
System.Int32 |
newLength |
|
Returns
Type Parameters
|
Improve this Doc
View Source
CopyOfRange<T>(T[], Int32, Int32)
Declaration
public static T[] CopyOfRange<T>(T[] original, int startIndexInc, int endIndexExc)
Parameters
Type |
Name |
Description |
T[] |
original |
|
System.Int32 |
startIndexInc |
|
System.Int32 |
endIndexExc |
|
Returns
Type Parameters
|
Improve this Doc
View Source
Equals<T>(T[], T[])
Compares the entire members of one array whith the other one.
Declaration
public static bool Equals<T>(T[] a, T[] b)
Parameters
Type |
Name |
Description |
T[] |
a |
The array to be compared.
|
T[] |
b |
The array to be compared with.
|
Returns
Type |
Description |
System.Boolean |
Returns true if the two specified arrays of Objects are equal
to one another. The two arrays are considered equal if both arrays
contain the same number of elements, and all corresponding pairs of
elements in the two arrays are equal. Two objects e1 and e2 are
considered equal if (e1==null ? e2==null : e1.Equals(e2)). In other
words, the two arrays are equal if they contain the same elements in
the same order. Also, two array references are considered equal if
both are null.
Note that if the type of is a System.Collections.Generic.IDictionary<TKey, TValue>,
System.Collections.Generic.IList<T>, or System.Collections.Generic.ISet<T>, its values and any nested collection values
will be compared for equality as well.
|
Type Parameters
|
Improve this Doc
View Source
Fill<T>(T[], T)
Assigns the specified value to each element of the specified array.
Declaration
public static void Fill<T>(T[] a, T val)
Parameters
Type |
Name |
Description |
T[] |
a |
the array to be filled
|
T |
val |
the value to be stored in all elements of the array
|
Type Parameters
Name |
Description |
T |
the type of the array
|
|
Improve this Doc
View Source
Fill<T>(T[], Int32, Int32, T)
Assigns the specified long value to each element of the specified
range of the specified array of longs. The range to be filled
extends from index fromIndex
, inclusive, to index
toIndex
, exclusive. (If fromIndex==toIndex
, the
range to be filled is empty.)
Declaration
public static void Fill<T>(T[] a, int fromIndex, int toIndex, T val)
Parameters
Type |
Name |
Description |
T[] |
a |
the array to be filled
|
System.Int32 |
fromIndex |
the index of the first element (inclusive) to be
filled with the specified value
|
System.Int32 |
toIndex |
the index of the last element (exclusive) to be
filled with the specified value
|
T |
val |
the value to be stored in all elements of the array
|
Type Parameters
Name |
Description |
T |
the type of the array
|
Exceptions
Type |
Condition |
System.ArgumentException |
if fromIndex > toIndex
|
System.ArgumentOutOfRangeException |
if fromIndex < 0 or toIndex > a.Length
|
|
Improve this Doc
View Source
GetHashCode<T>(T[])
Declaration
public static int GetHashCode<T>(T[] a)
Parameters
Type |
Name |
Description |
T[] |
a |
|
Returns
Type |
Description |
System.Int32 |
|
Type Parameters
|
Improve this Doc
View Source
ToString(IEnumerable<String>)
Declaration
public static string ToString(IEnumerable<string> values)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<System.String> |
values |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
ToString<T>(IEnumerable<T>)
Declaration
public static string ToString<T>(IEnumerable<T> values)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<T> |
values |
|
Returns
Type |
Description |
System.String |
|
Type Parameters