Example #1
0
        // Deserialization
        public Boolean Deserialize()
        {
            // Read info about storage format
            BooleanStorageFormats format = (BooleanStorageFormats)SerializerStorage.ReadStorageFormatId(BooleanStorageBase.FormatIdSizeInBits);

            // Is it True value
            if (format == BooleanStorageFormats.TrueValue)
            {
                return(true);
            }

            // It's False value
            return(false);
        }
Example #2
0
 // Constructor that requires config case value
 public BooleanStorageBase(BooleanStorageFormats confCase, byte usedConfigBits) : base((byte)confCase, FormatIdSizeInBits, usedConfigBits)
 {
 }