Example #1
0
 public ImplementationSpec ReadImplementationSpec(KeyValuePair<string, JToken> json)
 {
     var implementation = new ImplementationSpec();
     implementation.Name = json.Key;
     foreach (var property in EachProperty(json.Value, "version"))
     {
         if (property.Key == "version")
         {
             implementation.Version = property.Value.ToString();
         }
     }
     return implementation;
 }
Example #2
0
        public ImplementationSpec ReadImplementationSpec(KeyValuePair <string, JToken> json)
        {
            var implementation = new ImplementationSpec();

            implementation.Name = json.Key;
            foreach (var property in EachProperty(json.Value, "version"))
            {
                if (property.Key == "version")
                {
                    implementation.Version = property.Value.ToString();
                }
            }
            return(implementation);
        }
Example #3
0
 private void WriteImplementationSpec(JObject json, ImplementationSpec data)
 {
     json[data.Name] = new JValue(data.Version);
 }
Example #4
0
 private void WriteImplementationSpec(JObject json, ImplementationSpec data)
 {
     json[data.Name] = new JValue(data.Version);
 }