TypeExtensions.IsValueType C# (CSharp) 메소드

IsValueType() 공개 정적인 메소드

public static IsValueType ( this type ) : bool
type this
리턴 bool
        public static bool IsValueType(this Type type)
        {
            return type.GetTypeInfo().IsValueType;
        }

Usage Example

예제 #1
0
 public static object CreateDefaultValue(Type type)
 {
     return(TypeExtensions.IsValueType(type) ? CreateObject(type) : null);
 }