System.Runtime.Serialization.Formatters.Soap.Converter.InitTypeCodeA C# (CSharp) Method

InitTypeCodeA() private static method

private static InitTypeCodeA ( ) : void
return void
        private static void InitTypeCodeA()
        {
            typeCodeA = new TypeCode[primitiveTypeEnumLength];
            typeCodeA[(int)InternalPrimitiveTypeE.Invalid] = TypeCode.Object;
            typeCodeA[(int)InternalPrimitiveTypeE.Boolean] = TypeCode.Boolean;
            typeCodeA[(int)InternalPrimitiveTypeE.Byte] = TypeCode.Byte;
            typeCodeA[(int)InternalPrimitiveTypeE.Char] = TypeCode.Char;
            typeCodeA[(int)InternalPrimitiveTypeE.Decimal] = TypeCode.Decimal;
            typeCodeA[(int)InternalPrimitiveTypeE.Double] = TypeCode.Double;
            typeCodeA[(int)InternalPrimitiveTypeE.Int16] = TypeCode.Int16;
            typeCodeA[(int)InternalPrimitiveTypeE.Int32] = TypeCode.Int32;
            typeCodeA[(int)InternalPrimitiveTypeE.Int64] = TypeCode.Int64;
            typeCodeA[(int)InternalPrimitiveTypeE.SByte] = TypeCode.SByte;
            typeCodeA[(int)InternalPrimitiveTypeE.Single] = TypeCode.Single;
            typeCodeA[(int)InternalPrimitiveTypeE.TimeSpan] = TypeCode.Object;
            typeCodeA[(int)InternalPrimitiveTypeE.DateTime] = TypeCode.DateTime;
            typeCodeA[(int)InternalPrimitiveTypeE.UInt16] = TypeCode.UInt16;
            typeCodeA[(int)InternalPrimitiveTypeE.UInt32] = TypeCode.UInt32;
            typeCodeA[(int)InternalPrimitiveTypeE.UInt64] = TypeCode.UInt64;

            typeCodeA[(int)InternalPrimitiveTypeE.Time] = TypeCode.Object;
            typeCodeA[(int)InternalPrimitiveTypeE.Date] = TypeCode.Object;
            typeCodeA[(int)InternalPrimitiveTypeE.YearMonth] = TypeCode.Object;
            typeCodeA[(int)InternalPrimitiveTypeE.Year] = TypeCode.Object;
            typeCodeA[(int)InternalPrimitiveTypeE.MonthDay] = TypeCode.Object;
            typeCodeA[(int)InternalPrimitiveTypeE.Day] = TypeCode.Object;
            typeCodeA[(int)InternalPrimitiveTypeE.Month] = TypeCode.Object;
            typeCodeA[(int)InternalPrimitiveTypeE.HexBinary] = TypeCode.Object;
            typeCodeA[(int)InternalPrimitiveTypeE.Base64Binary] = TypeCode.Object;
            typeCodeA[(int)InternalPrimitiveTypeE.Integer] = TypeCode.Object;
            typeCodeA[(int)InternalPrimitiveTypeE.PositiveInteger] = TypeCode.Object;
            typeCodeA[(int)InternalPrimitiveTypeE.NonPositiveInteger] = TypeCode.Object;
            typeCodeA[(int)InternalPrimitiveTypeE.NonNegativeInteger] = TypeCode.Object;
            typeCodeA[(int)InternalPrimitiveTypeE.NegativeInteger] = TypeCode.Object;
            typeCodeA[(int)InternalPrimitiveTypeE.AnyUri] = TypeCode.Object;
            typeCodeA[(int)InternalPrimitiveTypeE.QName] = TypeCode.Object;
            typeCodeA[(int)InternalPrimitiveTypeE.Notation] = TypeCode.Object;
            typeCodeA[(int)InternalPrimitiveTypeE.NormalizedString] = TypeCode.Object;
            typeCodeA[(int)InternalPrimitiveTypeE.Token] = TypeCode.Object;
            typeCodeA[(int)InternalPrimitiveTypeE.Language] = TypeCode.Object;
            typeCodeA[(int)InternalPrimitiveTypeE.Name] = TypeCode.Object;
            typeCodeA[(int)InternalPrimitiveTypeE.Idrefs] = TypeCode.Object;
            typeCodeA[(int)InternalPrimitiveTypeE.Entities] = TypeCode.Object;
            typeCodeA[(int)InternalPrimitiveTypeE.Nmtoken] = TypeCode.Object;
            typeCodeA[(int)InternalPrimitiveTypeE.Nmtokens] = TypeCode.Object;
            typeCodeA[(int)InternalPrimitiveTypeE.NcName] = TypeCode.Object;
            typeCodeA[(int)InternalPrimitiveTypeE.Id] = TypeCode.Object;
            typeCodeA[(int)InternalPrimitiveTypeE.Idref] = TypeCode.Object;
            typeCodeA[(int)InternalPrimitiveTypeE.Entity] = TypeCode.Object;
        }