Save() public static method

public static Save ( object o, bool includePrivateByDefault = false ) : MiniYaml
o object
includePrivateByDefault bool
return MiniYaml
Beispiel #1
0
 public override MiniYaml Save()
 {
     return(FieldSaver.Save(this));
 }
Beispiel #2
0
        public MiniYaml Save(Func <object, bool> initFilter = null)
        {
            var ret = new MiniYaml(Type);

            foreach (var init in InitDict)
            {
                if (init is ISuppressInitExport)
                {
                    continue;
                }

                if (initFilter != null && !initFilter(init))
                {
                    continue;
                }

                var initName = init.GetType().Name;
                ret.Nodes.Add(new MiniYamlNode(initName.Substring(0, initName.Length - 4), FieldSaver.Save(init)));
            }

            return(ret);
        }
Beispiel #3
0
 public MiniYaml Save()
 {
     return(FieldSaver.Save(this));
 }
Beispiel #4
0
        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);
        }