Exemplo n.º 1
0
 // Token: 0x060017A6 RID: 6054 RVA: 0x0007002C File Offset: 0x0006E22C
 public static void ToCharAsUnicode(char c, char[] buffer)
 {
     buffer[0] = '\\';
     buffer[1] = 'u';
     buffer[2] = Class_511.IntToHex((int)(c >> 12 & '\u000f'));
     buffer[3] = Class_511.IntToHex((int)(c >> 8 & '\u000f'));
     buffer[4] = Class_511.IntToHex((int)(c >> 4 & '\u000f'));
     buffer[5] = Class_511.IntToHex((int)(c & '\u000f'));
 }
Exemplo n.º 2
0
 // Token: 0x0600175F RID: 5983 RVA: 0x0006E8FC File Offset: 0x0006CAFC
 public static bool ValueEquals(object objA, object objB)
 {
     if (objA == null && objB == null)
     {
         return(true);
     }
     if (objA != null && objB == null)
     {
         return(false);
     }
     if (objA == null && objB != null)
     {
         return(false);
     }
     if (!(objA.GetType() != objB.GetType()))
     {
         return(objA.Equals(objB));
     }
     if (Class_499.IsInteger(objA) && Class_499.IsInteger(objB))
     {
         return(Convert.ToDecimal(objA, CultureInfo.CurrentCulture).Equals(Convert.ToDecimal(objB, CultureInfo.CurrentCulture)));
     }
     return((objA is double || objA is float || objA is decimal) && (objB is double || objB is float || objB is decimal) && Class_511.ApproxEquals(Convert.ToDouble(objA, CultureInfo.CurrentCulture), Convert.ToDouble(objB, CultureInfo.CurrentCulture)));
 }