Beispiel #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);
        }
 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;
 }
 private void WriteImplementationSpec(JObject json, ImplementationSpec data)
 {
     json[data.Name] = new JValue(data.Version);
 }
Beispiel #4
0
 private void WriteImplementationSpec(JObject json, ImplementationSpec data)
 {
     json[data.Name] = new JValue(data.Version);
 }