static bool Differ(StorageSizes val1, StorageSizes val2) { return (val1.StoreSizeLimit != val2.StoreSizeLimit || val1.CleanupPeriod != val2.CleanupPeriod); }
static void Validate(ref StorageSizes storageSizes) { storageSizes.StoreSizeLimit = RangeUtils.PutInRange(StorageSizes.MinStoreSizeLimit, int.MaxValue, storageSizes.StoreSizeLimit); storageSizes.CleanupPeriod = RangeUtils.PutInRange(StorageSizes.MinCleanupPeriod, StorageSizes.MaxCleanupPeriod, storageSizes.CleanupPeriod); }