Click or drag to resize

ExtensionsActualType Method

Returns the actual type of source. If source denotes a nullable type, the underlying type is returned. Otherwise, source is returned.

Namespace:  Enkoni.Framework
Assembly:  Enkoni.Framework (in Enkoni.Framework.dll) Version: 1.3.0.1
Syntax
public static Type ActualType(
	this Type source
)

Parameters

source
Type: SystemType
The type that is investigated.

Return Value

Type: Type
The underlying type if source is nullable or source if it is not nullable.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Type. 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).
Exceptions
ExceptionCondition
ArgumentNullExceptionsource is null.
See Also