public static InstanceNameAndValue ReadInstanceNameAndValue(this BinaryReader reader) { var answer = new InstanceNameAndValue { InstanceName = reader.ReadString(), Value = reader.ReadDouble() }; return(answer); }
public static void Write(this BinaryWriter writer, InstanceNameAndValue value) { writer.Write(value.InstanceName); writer.Write(value.Value); }