KGy SOFT

ArrayExtensionsAsSectionT Method (T, Int32)

KGy SOFT Core Libraries Help
Gets an ArraySectionT instance, which represents a section of the specified array. No heap allocation occurs when using this method.

Namespace:  KGySoft.CoreLibraries
Assembly:  KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 5.5.0-rc.1
Syntax

public static ArraySection<T> AsSection<T>(
	this T[] array,
	int offset
)

Parameters

array
Type: T
The array to create the ArraySectionT from.
offset
Type: SystemInt32
The zero-based offset that points to the first element of the returned section.

Type Parameters

T
The type of the elements in the array.

Return Value

Type: ArraySectionT
An ArraySectionT instance, which represents a section of the specified array.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type . 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).
See Also

Reference