// Token: 0x06000EAA RID: 3754 RVA: 0x0004D62C File Offset: 0x0004B82C private T gmethod_2643 <T>(object obje_0) { Class_517.ArgumentNotNull(obje_0, "value"); Class_362 class_ = (Class_362)obje_0; return((T)((object)Convert.ChangeType(class_.prop_2, typeof(T), CultureInfo.InvariantCulture))); }
// Token: 0x06000CE0 RID: 3296 RVA: 0x00046FFC File Offset: 0x000451FC public virtual bool vmethod_2295(Class_361 arg_0) { IEnumerable <Class_361> enumerable = Class_335.cmethod_2284(this.prop_0, arg_0, false); foreach (Class_361 class_ in enumerable) { Class_362 class_2 = class_ as Class_362; switch (base.prop_0) { case Class_336.Equals: if (class_2 != null && class_2.kmethod_2607(this.prop_1)) { return(true); } break; case Class_336.NotEquals: if (class_2 != null && !class_2.kmethod_2607(this.prop_1)) { return(true); } break; case Class_336.Exists: return(true); case Class_336.LessThan: if (class_2 != null && class_2.dmethod_2616(this.prop_1) < 0) { return(true); } break; case Class_336.LessThanOrEquals: if (class_2 != null && class_2.dmethod_2616(this.prop_1) <= 0) { return(true); } break; case Class_336.GreaterThan: if (class_2 != null && class_2.dmethod_2616(this.prop_1) > 0) { return(true); } break; case Class_336.GreaterThanOrEquals: if (class_2 != null && class_2.dmethod_2616(this.prop_1) >= 0) { return(true); } break; default: throw new ArgumentOutOfRangeException(); } } return(false); }
// Token: 0x06000F4E RID: 3918 RVA: 0x0004F20C File Offset: 0x0004D40C private void smethod_2780(Class_431 arg_0) { if (arg_0 == null) { return; } if (!this.pmethod_2789(arg_0, Class_463.Integer)) { return; } this.cmethod_2764(arg_0); object obj = this.field_0.prop_10; if (arg_0.prop_6 != null) { if (Class_362.xmethod_2591(Class_428.Integer, obj, arg_0.prop_6) > 0) { this.pmethod_2759("Integer {0} exceeds maximum value of {1}.".FormatWith(CultureInfo.InvariantCulture, obj, arg_0.prop_6), arg_0); } if (arg_0.prop_8 && Class_362.xmethod_2591(Class_428.Integer, obj, arg_0.prop_6) == 0) { this.pmethod_2759("Integer {0} equals maximum value of {1} and exclusive maximum is true.".FormatWith(CultureInfo.InvariantCulture, obj, arg_0.prop_6), arg_0); } } if (arg_0.prop_5 != null) { if (Class_362.xmethod_2591(Class_428.Integer, obj, arg_0.prop_5) < 0) { this.pmethod_2759("Integer {0} is less than minimum value of {1}.".FormatWith(CultureInfo.InvariantCulture, obj, arg_0.prop_5), arg_0); } if (arg_0.prop_7 && Class_362.xmethod_2591(Class_428.Integer, obj, arg_0.prop_5) == 0) { this.pmethod_2759("Integer {0} equals minimum value of {1} and exclusive minimum is true.".FormatWith(CultureInfo.InvariantCulture, obj, arg_0.prop_5), arg_0); } } if (arg_0.prop_4 != null) { bool flag2; if (obj is BigInteger) { BigInteger bigInteger = (BigInteger)obj; bool flag = !Math.Abs(arg_0.prop_4.Value - Math.Truncate(arg_0.prop_4.Value)).Equals(0.0); if (flag) { flag2 = (bigInteger != 0L); } else { flag2 = (bigInteger % new BigInteger(arg_0.prop_4.Value) != 0L); } } else { flag2 = !Class_381.cmethod_2784((double)Convert.ToInt64(obj, CultureInfo.InvariantCulture) % arg_0.prop_4.Value); } if (flag2) { this.pmethod_2759("Integer {0} is not evenly divisible by {1}.".FormatWith(CultureInfo.InvariantCulture, Class_416.ToString(obj), arg_0.prop_4), arg_0); } } }