Show / Hide Table of Contents

Class ArrayExtesions

Inheritance
System.Object
ArrayExtesions
Namespace: GCore.Extensions.ArrayEx
Assembly: GCore.dll
Syntax
public static class ArrayExtesions : object

Methods

| Improve this Doc View Source

Get<T>(T[], Int32)

Gibt das Element am Index zurück. ich der Index kleiner 0, zählt er von hinten: -1 => das letzte Element -2 => das vorletzte

Declaration
public static T Get<T>(this T[] source, int index)
Parameters
Type Name Description
T[] source
System.Int32 index
Returns
Type Description
T
Type Parameters
Name Description
T
| Improve this Doc View Source

Slice<T>(T[], Int32, Int32)

Gibt einen Bereich zwischen den beiden Indexen zurück. ich ein Index kleiner 0, zählt er von hinten: -1 => das letzte Element -2 => das vorletzte

Declaration
public static T[] Slice<T>(this T[] source, int start, int end)
Parameters
Type Name Description
T[] source
System.Int32 start
System.Int32 end
Returns
Type Description
T[]
Type Parameters
Name Description
T
| Improve this Doc View Source

SubArray<T>(T[], Int32, Int32)

Erstellt einen neuen Array als Untermänge

Declaration
public static T[] SubArray<T>(this T[] data, int index, int length)
Parameters
Type Name Description
T[] data

orginal Array

System.Int32 index

Anfangsindex

System.Int32 length

Länge

Returns
Type Description
T[]
Type Parameters
Name Description
T

Arraytyp

| Improve this Doc View Source

SubArrayDeepClone<T>(T[], Int32, Int32)

Clont Alle Elemente im Array in die Tiefe

Declaration
public static T[] SubArrayDeepClone<T>(this T[] data, int index, int length)
Parameters
Type Name Description
T[] data
System.Int32 index
System.Int32 length
Returns
Type Description
T[]
Type Parameters
Name Description
T
| Improve this Doc View Source

ToObjectArray(System.Array)

Declaration
public static Object[] ToObjectArray(this System.Array array)
Parameters
Type Name Description
System.Array array
Returns
Type Description
Object[]
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX