YamlDotNet.Serialization.ObjectGraphVisitors.DefaultExclusiveObjectGraphVisitor.GetDefault C# (CSharp) Méthode

GetDefault() private static méthode

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