Table of Contents

Method UnwrapNullable

Namespace
Xunit.Sdk
Assembly
xunit.v3.common.dll

UnwrapNullable(Type)

Attempts to strip Nullable<T> from a type value and just return T. For non-nullable types, will return the type that was passed in.

public static Type UnwrapNullable(this Type type)

Parameters

type Type

Returns

Type