ArrayExtensionsAsSectionT(ArraySegmentT) Method
Namespace: KGySoft.CoreLibrariesAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0
public static ArraySection<T> AsSection<T>(
this ArraySegment<T> arraySegment
)
<ExtensionAttribute>
Public Shared Function AsSection(Of T) (
arraySegment As ArraySegment(Of T)
) As ArraySection(Of T)
public:
[ExtensionAttribute]
generic<typename T>
static ArraySection<T> AsSection(
ArraySegment<T> arraySegment
)
[<ExtensionAttribute>]
static member AsSection :
arraySegment : ArraySegment<'T> -> ArraySection<'T>
- arraySegment ArraySegmentT
- The ArraySegmentT to create the ArraySectionT from.
- T
- The type of the elements in the array.
ArraySectionTAn
ArraySectionT instance for the specified
ArraySegmentT.In Visual Basic and C#, you can call this method as an instance method on any object of type
ArraySegmentT. 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).