예제 #1
0
파일: Class61.cs 프로젝트: unionjl/CyberAIO
 // Token: 0x06000265 RID: 613 RVA: 0x000041CF File Offset: 0x000023CF
 public static void smethod_0(Array array_0, RuntimeFieldHandle runtimeFieldHandle_0)
 {
     if (Class180.smethod_0())
     {
         int metadataToken = FieldInfo.GetFieldFromHandle(runtimeFieldHandle_0).MetadataToken;
     }
     RuntimeHelpers.InitializeArray(array_0, runtimeFieldHandle_0);
 }
예제 #2
0
 internal StructureDocumentTagRow(Table A_0, Document A_1) : base(A_1)
 {
     this.table_0           = A_0;
     this.document_0        = A_1;
     this.sdtproperties_0   = new Spire.Doc.Documents.SDTProperties(this);
     this.characterFormat_1 = new CharacterFormat(this.document_0);
     this.cellCollection_1  = new CellCollection(this);
     this.class180_0        = new Class180(this.cellCollection_1);
 }
예제 #3
0
 // Token: 0x060005F4 RID: 1524 RVA: 0x000354B8 File Offset: 0x000336B8
 public static byte[] smethod_1(string string_0)
 {
     if (string_0 == null)
     {
         return(null);
     }
     if (string_0.Length == 0)
     {
         return(new byte[0]);
     }
     byte[] bytes  = Encoding.UTF8.GetBytes(string_0);
     byte[] result = Class180.smethod_0(bytes, Class55.smethod_0(), new Func <byte[]>(Class125.smethod_4));
     Array.Clear(bytes, 0, bytes.Length);
     return(result);
 }
예제 #4
0
    // Token: 0x060005F5 RID: 1525 RVA: 0x00035508 File Offset: 0x00033708
    public static string smethod_2(byte[] byte_0, bool bool_0)
    {
        if (byte_0 == null)
        {
            return(null);
        }
        if (byte_0.Length == 0)
        {
            return(string.Empty);
        }
        byte[] array   = Class180.smethod_1 <byte>(byte_0, 0, Class55.smethod_0(), new Func <byte[]>(Class125.smethod_4), bool_0);
        string @string = Encoding.UTF8.GetString(array);

        Array.Clear(array, 0, array.Length);
        return(@string);
    }
예제 #5
0
        internal static void smethod_3(JsonWriter jsonWriter_0, Enum17 enum17_0, object object_0)
        {
            switch (enum17_0)
            {
            case Enum17.Char:
                jsonWriter_0.WriteValue((char)object_0);
                return;

            case Enum17.CharNullable:
                jsonWriter_0.WriteValue((object_0 == null) ? null : new char?((char)object_0));
                return;

            case Enum17.Boolean:
                jsonWriter_0.WriteValue((bool)object_0);
                return;

            case Enum17.BooleanNullable:
                jsonWriter_0.WriteValue((object_0 == null) ? null : new bool?((bool)object_0));
                return;

            case Enum17.SByte:
                jsonWriter_0.WriteValue((sbyte)object_0);
                return;

            case Enum17.SByteNullable:
                jsonWriter_0.WriteValue((object_0 == null) ? null : new sbyte?((sbyte)object_0));
                return;

            case Enum17.Int16:
                jsonWriter_0.WriteValue((short)object_0);
                return;

            case Enum17.Int16Nullable:
                jsonWriter_0.WriteValue((object_0 == null) ? null : new short?((short)object_0));
                return;

            case Enum17.UInt16:
                jsonWriter_0.WriteValue((ushort)object_0);
                return;

            case Enum17.UInt16Nullable:
                jsonWriter_0.WriteValue((object_0 == null) ? null : new ushort?((ushort)object_0));
                return;

            case Enum17.Int32:
                jsonWriter_0.WriteValue((int)object_0);
                return;

            case Enum17.Int32Nullable:
                jsonWriter_0.WriteValue((object_0 == null) ? null : new int?((int)object_0));
                return;

            case Enum17.Byte:
                jsonWriter_0.WriteValue((byte)object_0);
                return;

            case Enum17.ByteNullable:
                jsonWriter_0.WriteValue((object_0 == null) ? null : new byte?((byte)object_0));
                return;

            case Enum17.UInt32:
                jsonWriter_0.WriteValue((uint)object_0);
                return;

            case Enum17.UInt32Nullable:
                jsonWriter_0.WriteValue((object_0 == null) ? null : new uint?((uint)object_0));
                return;

            case Enum17.Int64:
                jsonWriter_0.WriteValue((long)object_0);
                return;

            case Enum17.Int64Nullable:
                jsonWriter_0.WriteValue((object_0 == null) ? null : new long?((long)object_0));
                return;

            case Enum17.UInt64:
                jsonWriter_0.WriteValue((ulong)object_0);
                return;

            case Enum17.UInt64Nullable:
                jsonWriter_0.WriteValue((object_0 == null) ? null : new ulong?((ulong)object_0));
                return;

            case Enum17.Single:
                jsonWriter_0.WriteValue((float)object_0);
                return;

            case Enum17.SingleNullable:
                jsonWriter_0.WriteValue((object_0 == null) ? null : new float?((float)object_0));
                return;

            case Enum17.Double:
                jsonWriter_0.WriteValue((double)object_0);
                return;

            case Enum17.DoubleNullable:
                jsonWriter_0.WriteValue((object_0 == null) ? null : new double?((double)object_0));
                return;

            case Enum17.DateTime:
                jsonWriter_0.WriteValue((DateTime)object_0);
                return;

            case Enum17.DateTimeNullable:
                jsonWriter_0.WriteValue((object_0 == null) ? null : new DateTime?((DateTime)object_0));
                return;

            case Enum17.DateTimeOffset:
                jsonWriter_0.WriteValue((DateTimeOffset)object_0);
                return;

            case Enum17.DateTimeOffsetNullable:
                jsonWriter_0.WriteValue((object_0 == null) ? null : new DateTimeOffset?((DateTimeOffset)object_0));
                return;

            case Enum17.Decimal:
                jsonWriter_0.WriteValue((decimal)object_0);
                return;

            case Enum17.DecimalNullable:
                jsonWriter_0.WriteValue((object_0 == null) ? null : new decimal?((decimal)object_0));
                return;

            case Enum17.Guid:
                jsonWriter_0.WriteValue((Guid)object_0);
                return;

            case Enum17.GuidNullable:
                jsonWriter_0.WriteValue((object_0 == null) ? null : new Guid?((Guid)object_0));
                return;

            case Enum17.TimeSpan:
                jsonWriter_0.WriteValue((TimeSpan)object_0);
                return;

            case Enum17.TimeSpanNullable:
                jsonWriter_0.WriteValue((object_0 == null) ? null : new TimeSpan?((TimeSpan)object_0));
                return;

            case Enum17.BigInteger:
                jsonWriter_0.WriteValue((BigInteger)object_0);
                return;

            case Enum17.BigIntegerNullable:
                jsonWriter_0.WriteValue((object_0 == null) ? null : new BigInteger?((BigInteger)object_0));
                return;

            case Enum17.Uri:
                jsonWriter_0.WriteValue((Uri)object_0);
                return;

            case Enum17.String:
                jsonWriter_0.WriteValue((string)object_0);
                return;

            case Enum17.Bytes:
                jsonWriter_0.WriteValue((byte[])object_0);
                return;

            case Enum17.DBNull:
                jsonWriter_0.WriteNull();
                return;
            }
            if (!(object_0 is IConvertible))
            {
                throw smethod_4(jsonWriter_0, object_0);
            }
            IConvertible convertible = (IConvertible)object_0;
            Class180     class2      = Class181.smethod_2(convertible);
            object       obj2        = convertible.ToType(class2.Type_0, CultureInfo.InvariantCulture);

            smethod_3(jsonWriter_0, class2.Enum17_0, obj2);
        }
 public abstract void Visit(Class180 c);
 public override void Visit(Class180 c) { }