Esempio n. 1
0
 public static IResult <ObjectGraph> FromFile(FileName file) => tryTo(() => ObjectGraph.FromFile(file));
Esempio n. 2
0
 public static IResult <ObjectGraph> FromSingleLine(string singleLine)
 {
     return(tryTo(() => ObjectGraph.FromSingleLine(singleLine)));
 }
Esempio n. 3
0
 public static IResult <ObjectGraph> Serialize(object obj, Predicate <string> exclude, StringStringHash signatures)
 {
     return(tryTo(() => ObjectGraph.Serialize(obj, exclude, signatures)));
 }
Esempio n. 4
0
        public static DictionaryAssertion <string, ObjectGraph> Must(this ObjectGraph objectGraph)
        {
            var hash = objectGraph.AnyHash().ForceValue();

            return(new DictionaryAssertion <string, ObjectGraph>(hash));
        }
Esempio n. 5
0
 public ObjectGraphTrying(ObjectGraph graph) => this.graph = graph;
Esempio n. 6
0
 internal Switch(ObjectGraph graph) : this() => this.graph = graph;
Esempio n. 7
0
 public Defaulting(ObjectGraph objectGraph, Func <string> defaultValue)
 {
     this.objectGraph  = objectGraph;
     this.defaultValue = defaultValue;
 }