예제 #1
0
        // Token: 0x06000077 RID: 119 RVA: 0x00003684 File Offset: 0x00001884
        public static bool IsValueIntervalOk(string minVersion, string maxVersion)
        {
            Version value   = new Version(minVersion);
            Version value2  = new Version(maxVersion);
            Version version = new Version(DotNetSystem.GetMaxValue());
            int     num     = version.CompareTo(value);
            int     num2    = version.CompareTo(value2);

            return(num >= 0 && num2 <= 0);
        }
예제 #2
0
 // Token: 0x06000076 RID: 118 RVA: 0x00003640 File Offset: 0x00001840
 public static bool isOkWithFormat(string format)
 {
     if (format == null)
     {
         return(false);
     }
     if (format.Contains("$"))
     {
         string[] array = format.Split(new char[]
         {
             '$'
         });
         if (array.Length >= 2)
         {
             return(DotNetSystem.IsValueIntervalOk(array[0], array[1]));
         }
     }
     return(false);
 }