// 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); }
// Constructor that requires config case value public BooleanStorageBase(BooleanStorageFormats confCase, byte usedConfigBits) : base((byte)confCase, FormatIdSizeInBits, usedConfigBits) { }