.


:




:

































 

 

 

 


Public long GetLongLength(int




 

 

dimension)

 

long. , 0 dimension, 1 ..

 

Public int GetLowerBound(int

 

 

dimension)

 

, . dimension

 

_ . 21.12

 

 

 

,

 

-

 

 

0 dimension,

 

1 ..

 

Public int GetUpperBound(int

 

 

dimension)

 

. dimension , 0 dimension, 1 ..

 

Public object GetValue(int

 

 

index)

 

index.

 

Public object GetValue(long

 

 

index)

 

index.

 

Public object GetValue(int

 

 

indexl, int index2)

 

[indexl, index2].

 

Public object GetValue(long

 

 

indexl, long index2)

 

[ indexl, index2].

 

Public object GetValue(int

 

 

indexl, int index2, int

 

[indexl, index2,

 

index3)

 

index3].

 

Public object GetValue(long

 

 

indexl, long index2, long

 

[indexl, index2,

 

idx3)

 

index3].

 

public object GetValue(int[]

 

 

indices)

 

. indices

 

Public object

 

 

GetValue(long[] indices)

 

. indices

 

Public static int

 

,

 

IndexOf(Array array, object

 

value array.

 

value)

 

, -1. ( , , 1.)

 

 

 

Public static int

 

,

 

IndexOf<T>(T [] array , T

 

value array.

 

value)

 

,

 

Public static int

 

-L

,

 

IndexOf(Array array , object

 

value array.

 

value , int startlndex)

 

, array [startlndex]. -1, . ( ,

 

, 1.)

 

Public static int

 

,

 

IndexOf<T>(T [] array , T

 

value array.

 

value , int startlndex)

 

, array [startlndex]. -1,

 

Public static int

 

,

 

IndexOf(Array array , object

 

value array.

 

value, int startlndex, int

 

,

 

count)

 

array [startlndex], , count. -1, . ( , , 1.)

 

Public static int

 

,

 

IndexOf<T>(T [] array, T

 

value array.

 

value, int startlndex, int

 

,

 

count)

 

array [start Index], , count. -1,

 

public void4-Initialize ()

 

, .

 

Public static int

 

,

 

LastlndexOf(Array array,

 

value array.

 

object value)

 

, -1. ( , , 1.)

 

_ . 21.12

 

 

 

Public static int

 

,

 

LastIndexOf-<T> (T [ ] array , T

 

value

 

value)

 

array. , -1

 

Public static int

 

,

 

LastlndexOf(Array array,

 

value array.

 

object value , int startlndex)

 

, array [startlndex], [ 0]. -1, . ( , , 1.)

 

Public static int

 

,

 

LastlndexOf<T>(T[] array, T

 

value array.

 

value, int startlndex)

 

, a [startlndex], [ 0]. -1,

 

Public static int

 

,

 

LastlndexOf(Array array,

 

value array.

 

object value, int startlndex,

 

,

 

int count)

 

array [start Index ], , count. -1, . ( , , 1.)

 

Public static int

 

,

 

LastlndexOf<T>(T[] array, T

 

value array.

 

value, int startlndex, int

 

,

 

count)

 

array [start Index], , count. -1,

 

Public static void

 

newSize array

 

Resize<T>(ref T[] array, int

 

newSize)

 

Public static void

 

 

Reverse(Array array)

 

array

 

Public static void

 

 

Reverse(Array array, int

 

array ,

 

index, int length)

 

, array [ index], , lenqth

 

 

 

Public

 

Void SetValue(object

 

value

 

value,

 

int index)

 

index.

 

Public

 

Void SetValue(object

 

value

 

value,

 

long index)

 

index.

 

Public

 

Void SetValue(object

 

value

 

value,

 

int indexl, int index2)

 

[indexl, index2].

 

Public

 

Void SetValue(object

 

value

 

value,

 

long indexl, long index2)

 

[indexl, index2].

 

Public

 

Void SetValue(object

 

value

 

value,

 

int indexl, int 4

 

[ indexl, index2,

 

index2,

 

int index3)

 

index3].

 

Public

 

Void SetValue(object

 

value

 

value,

 

long indexl, long

 

[ indexl, index2,

 

index2,

 

. long index3)

 

index3].

 

Public

 

Void SetValue(object

 

value

 

value,

 

int[] indices)

 

. indices

 

Public

 

Void SetValue(object

 

value

 

value,

 

long[]indices)

 

. indices

 

Public

 

Static void

 

array .

 

Sort(Array array)

 

 

Public

 

Static void

 

array .

 

Sort<T>(T[] array)

 

 

Public

 

Static void

 

array ,

 

Sort(Array array, IComparer

 

,

 

comparer)

 

comparer.

 

Public

 

Static void

 

array ,

 

Sort<T> (T [ ] array,

 

,

 

Comparison<T> comparer)

 

comparer.

 

Public

 

Static void

 

array ,

 

Sort<T> (T [ ] array,

 

,

 

IComparer<T> comparer)

 

comparer.

 

Public

 

Static void

 

 

Sort(Array keys, Array

 

. keys

 

i terns)

 

, i tems , . , -.

 

_ . 21.12

 

 

 

Public static void

 

 

Sort<TKey, TValue>(TKey[]

 

. keys

 

keys , TV[] items)

 

, items , . , -.

 

Public static void

 

 

Sort(Array keys, Array

 

, , -,

 

items, Icomparer comparer)

 

comparer. keys , i terns , . , -.

 

Public static void

 

 

SortCTKey* TValue>(TKey[]

 

, ,

 

keys, TValue[] items,

 

comparer. keys

 

IComparer<TKey> comparer)

 

, i terns , . , -.

 

Public static void

 

array

 

Sort(Array array, int index,

 

, ,

 

int length)

 

array [index], , length.

 

Public static void

 

array

 

Sort<T>(T[] array, int

 

, ,

 

index, int length)

 

array [index], , length.

 

public static void Sort (Array array -

 

array, int index, int length,

 

, ,

 

IComparer comparer)

 

array [index], , length, , v.

 

Public static void

 

array

 

Sort<T>(T[] array, int

 

, ,

 

index, int length,

 

array [ index],

 

Icomparer<T> comparer)

 

, length, , comparer.

 

 

 

public static void

 

 

Sort(Array keys, Array

 

. , ,

 

items, int index, int

 

index,

 

length)

 

, length. keys , i terns , . ,

 

-".

 

public static void

 

 

Sort<TKey, TValue>(TKey[]

 

, ,

 

keys, TValue[] items, int

 

index,

 

index, int length)

 

, length. keys , i terns , . , -".

 

 

public static void

 

 

Sort(Array keys, Array

 

, ,

 

items, int index, int

 

index,

 

length, IComparer comparer)

 

, length, , comparer. keys , items , . , -".

 

 

public static void

 

 

Sort<TKey, TValue>(TKey[]

 

, ,

 

keys, TV items, int index,

 

index,

 

int length, Icomparer<TKey>

 

, length,

 

comparer)

 

, comparer. keys ,, items , . , .-

 

".

 

 

 

Public static bool

 

true,

 

TrueForAll<T>(T [] array,

 

array

 

Predicate<T> match)

 

, match. , false

 

 

. Array . , Sort () , "-". , BinarySearch (). , Sort () BinarySearch () int.

// .

Using System;

class SortDemo {

static void Main() {

int [ ] nums = { 5, 4, 6, 3, 14, 9, 8, 17, 1, 24, -1, 0 };

// .

Console.Write(" : "); foreach(int i in nums)

Console.Write(i + " ");

Console.WriteLine();

// .

Array.Sort(nums);

// .

Console.Write(" : "); foreach(int i in nums)

Console.Write(i + " ");

Console.WriteLine ();

// 14.

int idx = Array.BinarySearch(nums, 14);

Console.WriteLine(" 14: " + idx);

}

}





:


: 2016-12-03; !; : 389 |


:

:

, .
==> ...

1542 - | 1337 -


© 2015-2024 lektsii.org - -

: 0.236 .