YamlDotNet.Serialization.ObjectGraphVisitors.DefaultExclusiveObjectGraphVisitor.GetDefault C# (CSharp) Method

GetDefault() private static method

private static GetDefault ( Type type ) : object
type System.Type
return object
        private static object GetDefault(Type type)
        {
            return type.IsValueType() ? Activator.CreateInstance(type) : null;
        }