Table of Contents

Method IsReferenceOrContainsReferences

Namespace
Zyl.ExSpans.Reflection
Assembly
ExSpans.Core.dll

IsReferenceOrContainsReferences<T>()

Returns a value that indicates whether the specified type is a reference type or a value type that contains references or by-refs (返回一个值,该值指示指定的类型是引用类型还是包含引用或 by-refs 的值类型).

public static bool IsReferenceOrContainsReferences<T>()

Returns

bool

true if the given type is a reference type or a value type that contains references or by-refs; otherwise, false (类型是是引用类型还是包含引用或 by-refs 的值类型就返回 true; 否则返回 false).

Type Parameters

T

The type (类型).

Remarks

In .NET Standard 1.1~2.0, due to the inability to accurately determine, we rolled back to call the !IsValueType<T>() method (在 .NET Standard 1.1~2.0 时, 因无法准确判断, 于是回退为调用 !IsValueType 方法)

See Also