Ejemplo n.º 1
0
        public GruntTaskAuthor FromYaml(string yaml)
        {
            IDeserializer             deserializer = new DeserializerBuilder().Build();
            SerializedGruntTaskAuthor author       = deserializer.Deserialize <SerializedGruntTaskAuthor>(yaml);

            return(this.FromSerializedGruntTaskAuthor(author));
        }
Ejemplo n.º 2
0
 internal GruntTaskAuthor FromSerializedGruntTaskAuthor(SerializedGruntTaskAuthor author)
 {
     this.Name   = author.Name;
     this.Handle = author.Handle;
     this.Link   = author.Link;
     return(this);
 }
Ejemplo n.º 3
0
        public GruntTaskAuthor FromJson(string json)
        {
            SerializedGruntTaskAuthor author = JsonConvert.DeserializeObject <SerializedGruntTaskAuthor>(json);

            return(this.FromSerializedGruntTaskAuthor(author));
        }