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

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