Click or drag to resize

ReadOnlySpanT Methods

The ReadOnlySpanT type exposes the following members.

Methods
 NameDescription
Public methodStatic memberCastUpTDerived Not supported on .NET Framework.

CastUp<TDerived> exists for reference-type covariance (e.g. ReadOnlySpan<string>ReadOnlySpan<object>), which is incompatible with the where T : unmanaged constraint required by this shim. Unmanaged types are never reference types and therefore covariant casting is meaningless in this context.


Obsolete
Public methodCopyTo(SpanT) Copies the contents of this span into a destination SpanT.
Public methodCopyTo(T, Int32) Copies the contents of this span into a destination array.
Public methodEqualsIndicates whether this instance and a specified object are equal.
(Inherited from ValueType)
Public methodGetEnumeratorReturns an enumerator for this span, enabling foreach support.
Public methodGetHashCodeReturns the hash code for this instance.
(Inherited from ValueType)
Public methodGetPinnableReference Returns a reference to the first element for use with the fixed statement. Not intended to be called by user code.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodSequenceEqual Determines whether this span and other contain the same sequence of elements, using a native memcmp comparison.
Public methodSlice(Int32) Forms a slice out of the current span starting at the specified index.
Public methodSlice(Int32, Int32) Forms a slice out of the current span starting at the specified index for the specified length.
Public methodToArray Copies the contents of this span into a new array.
Public methodToStringReturns the fully qualified type name of this instance.
(Inherited from ValueType)
Public methodTryCopyTo Attempts to copy the contents of this span into a destination SpanT and returns a value indicating whether the operation succeeded.
Top
Extension Methods
 NameDescription
Public Extension MethodConvertTReturn Converts a generic object
(Defined by JCOBridgeExtensions)
Public Extension MethodToNative Converts a generic input to an object manageable from the JVM
(Defined by JCOBridgeExtensions)
Top
See Also