ImagePlaneExtensionsDereferenceAsT Method

CVB.Net Documentation
Dereferences the given source range as a T.

Namespace:  Stemmer.Cvb
Assembly:  Stemmer.Cvb (in Stemmer.Cvb.dll) Version: 14.0.0.0
Syntax

public static IEnumerable<T> DereferenceAs<T>(
	this IEnumerable<IntPtr> source
)
where T : struct, new()

Parameters

source
Type: System.Collections.GenericIEnumerableIntPtr
Pointer range to dereference.

Type Parameters

T
Type to use for dereferencing.

Return Value

Type: IEnumerableT
Enumerable of the dereferenced values.

Usage Note

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

Dereferencing a pointer means getting the value at the location pointed to.

Attention: if the type T does not match the actual type at the pointer, the result is undefined. Also do not use structs containing reference types.

See Also

Reference