public static MiniYamlNode SaveField(object o, string field) { return(new MiniYamlNode(field, FieldSaver.FormatValue(o, o.GetType().GetField(field)))); }
public MiniYaml Save() { return(FieldSaver.Save(this)); }
public MiniYaml Save() { var ret = new MiniYaml(Type); foreach (var init in InitDict) { var initName = init.GetType().Name; ret.Nodes.Add(new MiniYamlNode(initName.Substring(0, initName.Length - 4), FieldSaver.Save(init))); } return(ret); }