コード例 #1
0
 static bool Differ(StorageSizes val1, StorageSizes val2)
 {
     return
         (val1.StoreSizeLimit != val2.StoreSizeLimit ||
          val1.CleanupPeriod != val2.CleanupPeriod);
 }
コード例 #2
0
 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);
 }