Thinktecture.Tools.Web.Services.CodeGeneration.CodeDomExtensions.IsNullableType C# (CSharp) Method

IsNullableType() public static method

Tests if the CodeTypeReference represents a Nullable type.
public static IsNullableType ( this reference ) : bool
reference this The code type reference.
return bool
        public static bool IsNullableType(this CodeTypeReference reference)
        {
            return Type.GetType(reference.BaseType) == typeof(Nullable<>);
        }