Esempio n. 1
0
        public static PrecompiledElement Read(BinaryReader reader)
        {
            var id     = ObjectIdentifier.Read(reader);
            var source = reader.ReadString();

            return(new PrecompiledElement(id, source));
        }
Esempio n. 2
0
        static KeyValuePair <ObjectIdentifier, IEnumerable <ObjectIdentifier> > ReadType(BinaryReader reader)
        {
            var key   = ObjectIdentifier.Read(reader);
            var value = List.Read(reader, (Func <BinaryReader, ObjectIdentifier>)ObjectIdentifier.Read);

            return(new KeyValuePair <ObjectIdentifier, IEnumerable <ObjectIdentifier> >(key, value));
        }
Esempio n. 3
0
 public static ChangeSelection ReadDataFrom(BinaryReader reader)
 {
     return(new ChangeSelection
     {
         IsPreview = reader.ReadBoolean(),
         Id = ObjectIdentifier.Read(reader)
     });
 }
Esempio n. 4
0
        public static UpdateAttribute ReadDataFrom(BinaryReader reader)
        {
            var id       = reader.ReadGuid();
            var obj      = ObjectIdentifier.Read(reader);
            var property = reader.ReadString();
            var value    = Optional.Read(reader, (Func <string>)reader.ReadString);
            var source   = SourceReference.Read(reader);

            return(new UpdateAttribute(obj, property, value, source)
            {
                Id = id,
            });
        }