ArrayExtensionsAsSectionT(T, Int32) Method
Gets an
ArraySectionT instance, which represents a section of the specified
array.
No heap allocation occurs when using this method.
Namespace: KGySoft.CoreLibrariesAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 8.1.0
public static ArraySection<T> AsSection<T>(
this T[] array,
int offset
)
<ExtensionAttribute>
Public Shared Function AsSection(Of T) (
array As T(),
offset As Integer
) As ArraySection(Of T)
public:
[ExtensionAttribute]
generic<typename T>
static ArraySection<T> AsSection(
array<T>^ array,
int offset
)
[<ExtensionAttribute>]
static member AsSection :
array : 'T[] *
offset : int -> ArraySection<'T>
- array T
- The array to create the ArraySectionT from.
- offset Int32
- The zero-based offset that points to the first element of the returned section.
- T
- The type of the elements in the array.
ArraySectionTAn
ArraySectionT instance, which represents a section of the specified
array.In Visual Basic and C#, you can call this method as an instance method on any object of type
T. 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).