示例#1
0
 private void WriteBooleanField(AdmBooleanField field)
 {
     _writer.Write((int)(((bool)field.Value) ? 1 : 0));
 }
示例#2
0
        private AdmBooleanField ReadBooleanField(ref AdmReadingContext context)
        {
            AdmBooleanField field = new AdmBooleanField();
            field.Value = _reader.ReadInt32() == 1;

            return field;
        }