RuntimeHelpers.IsReferenceOrContainsReferences<T> Method

Definition

Returns a value that indicates whether the specified type is a reference type or a value type that contains references.

public:
generic <typename T>
 static bool IsReferenceOrContainsReferences();
public static bool IsReferenceOrContainsReferences<T> ();
static member IsReferenceOrContainsReferences : unit -> bool
Public Shared Function IsReferenceOrContainsReferences(Of T) () As Boolean

Type Parameters

T

The type.

Returns

true if the given type is reference type or value type that contains references; otherwise, false.

Applies to