Mono.Rocks.TypeRocks.IsNullable C# (CSharp) Method

IsNullable() public static method

public static IsNullable ( this self ) : bool
self this
return bool
        public static bool IsNullable(this Type self)
        {
            Check.Self (self);

            if (!self.IsValueType || !self.IsGenericType)
                return false;

            return self.IsGenericTypeDefinition
                ? false
                : self.GetGenericTypeDefinition () == typeof (Nullable<>);
        }
TypeRocks