Exemple #1
0
 protected override void Store()
 {
     foreach (var type in Platform4.PrimitiveTypes())
     {
         Store(type);
     }
 }
Exemple #2
0
 static KnownClassesRepository()
 {
     Primitives = new Hashtable4();
     Type[] primitiveArray = Platform4.PrimitiveTypes();
     for (int primitiveIndex = 0; primitiveIndex < primitiveArray.Length; ++primitiveIndex)
     {
         Type primitive = primitiveArray[primitiveIndex];
         RegisterPrimitive(primitive);
     }
 }
Exemple #3
0
        private static Type[] ExcludedTypes()
        {
            var excludedTypes = new Type[Platform4.PrimitiveTypes().Length];
            var i             = 0;

            foreach (var type in Platform4.PrimitiveTypes())
            {
                excludedTypes[i++] = GenericItemTypeFor(type);
            }

            return(excludedTypes);
        }
Exemple #4
0
        public void TestPrimitiveTypeRepresentation()
        {
            ReopenHidingClasses(ExcludedTypes());

            IReflector reflector = Db().Ext().Reflector();

            foreach (var type in Platform4.PrimitiveTypes())
            {
                var klass = reflector.ForName(TypeReference.FromType(GenericItemTypeFor(type)).GetUnversionedName());
                AssertType(reflector, type, FieldType(klass, "simpleField"));
                AssertType(reflector, NullableTypeFor(type), FieldType(klass, "nullableField"));
            }
        }