Beispiel #1
0
        static BasicTypeInfo()
        {
            booleanInfo = BasicTypeInfo.Create("System::Boolean");
            sbyteInfo   = BasicTypeInfo.Create("System::SByte");
            byteInfo    = BasicTypeInfo.Create("System::Byte");
            int16Info   = BasicTypeInfo.Create("System::Int16");
            uint16Info  = BasicTypeInfo.Create("System::UInt16");
            int32Info   = BasicTypeInfo.Create("System::Int32");
            uint32Info  = BasicTypeInfo.Create("System::UInt32");
            int64Info   = BasicTypeInfo.Create("System::Int64");
            uint64Info  = BasicTypeInfo.Create("System::UInt64");
            singleInfo  = BasicTypeInfo.Create("System::Single");
            doubleInfo  = BasicTypeInfo.Create("System::Double");
            decimalInfo = BasicTypeInfo.Create("System::Decimal");
            charInfo    = BasicTypeInfo.Create("System::Char");
            intPtrInfo  = BasicTypeInfo.Create("System::IntPtr");
            uintPtrInfo = BasicTypeInfo.Create("System::UIntPtr");
            objectInfo  = BasicTypeInfo.Create("System::Object");
            stringInfo  = BasicTypeInfo.Create("System::String");
            voidInfo    = BasicTypeInfo.Create("void");
            typeInfos["System::Void"] = voidInfo;
            typedrefInfo = BasicTypeInfo.Create("System::TypedReference");

            system_enum              = BasicTypeInfo.Create("System::Enum");
            system_valueType         = BasicTypeInfo.Create("System::ValueType");
            system_multicastDelegate = BasicTypeInfo.Create("System::MulticastDelegate");
            system_type              = BasicTypeInfo.Create("System::Type");
            system_runtime_compilerServices_runtimeHelpers = BasicTypeInfo.Create("System::Runtime::CompilerServices::RuntimeHelpers");
            system_idisposable = BasicTypeInfo.Create("System::IDisposable");
        }
Beispiel #2
0
 public static void TuneAllTypeInfos()
 {
     BasicTypeInfo.TuneAll();
     ArrayTypeInfo.TuneAll();
     ReferenceTypeInfo.TuneAll();
     PointerTypeInfo.TuneAll();
 }
Beispiel #3
0
        public static BasicTypeInfo Create(string _type)
        {
            if (typeInfos.ContainsKey(_type))
            {
                return(typeInfos[_type]);
            }
            BasicTypeInfo ti = new BasicTypeInfo(_type);

            typeInfos[_type] = ti;
            return(ti);
        }