Пример #1
0
        public ReferenceAssembly FromYaml(string yaml)
        {
            IDeserializer deserializer           = new DeserializerBuilder().Build();
            SerializedReferenceAssembly assembly = deserializer.Deserialize <SerializedReferenceAssembly>(yaml);

            return(this.FromSerializedReferenceAssembly(assembly));
        }
Пример #2
0
 internal ReferenceAssembly FromSerializedReferenceAssembly(SerializedReferenceAssembly assembly)
 {
     this.Name          = assembly.Name;
     this.Location      = assembly.Location;
     this.DotNetVersion = assembly.DotNetVersion;
     return(this);
 }
Пример #3
0
        public ReferenceAssembly FromJson(string json)
        {
            SerializedReferenceAssembly assembly = JsonConvert.DeserializeObject <SerializedReferenceAssembly>(json);

            return(this.FromSerializedReferenceAssembly(assembly));
        }