Пример #1
0
        public void AddToByteSteam(ByteStream stream)
        {
            if (stream == null) throw new ArgumentException("null stream");

            stream.addUShort(Major);
            stream.addUShort(Minor);
            stream.addUShort(Patch);
            stream.addString(GitSHA);
        }
        public void AddToByteSteam(ByteStream stream)
        {
            if (stream == null) throw new ArgumentException("null stream");

             //Log.Trace("serializing Counts count " + Counts.Count, "AddToByteSteam");
             stream.addUShort((ushort)Counts.Count);
             foreach (var count in Counts) {
                 count.AddToByteSteam(stream);
             }
        }