Exemple #1
0
        private ProgrammingChallenge2.Codecs.Matthid.Protobuf.StupidPhysicalValue EncodePhysical(PhysicalValue p)
        {
            var pressureProto = new ProgrammingChallenge2.Codecs.Matthid.Protobuf.StupidPhysicalValue();

            pressureProto.Unit  = p.Unit;
            pressureProto.Value = p.Value;
            return(pressureProto);
        }
Exemple #2
0
 private PhysicalValue DecodePhysical(ProgrammingChallenge2.Codecs.Matthid.Protobuf.StupidPhysicalValue p)
 {
     return(new PhysicalValue(p.Value, p.Unit));
 }