Пример #1
0
        public static InstanceNameAndValue ReadInstanceNameAndValue(this BinaryReader reader)
        {
            var answer = new InstanceNameAndValue
            {
                InstanceName = reader.ReadString(),
                Value        = reader.ReadDouble()
            };

            return(answer);
        }
Пример #2
0
 public static void Write(this BinaryWriter writer, InstanceNameAndValue value)
 {
     writer.Write(value.InstanceName);
     writer.Write(value.Value);
 }