Ancestry.QueryProcessor.Compile.ReflectionUtility.GetDefaultValue C# (CSharp) Method

GetDefaultValue() public static method

public static GetDefaultValue ( System type ) : object
type System
return object
        public static object GetDefaultValue(System.Type type)
        {
            if (type.IsValueType)
                return Activator.CreateInstance(type);
            else
                return null;
        }