protected override void Store() { foreach (var type in Platform4.PrimitiveTypes()) { Store(type); } }
static KnownClassesRepository() { Primitives = new Hashtable4(); Type[] primitiveArray = Platform4.PrimitiveTypes(); for (int primitiveIndex = 0; primitiveIndex < primitiveArray.Length; ++primitiveIndex) { Type primitive = primitiveArray[primitiveIndex]; RegisterPrimitive(primitive); } }
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); }
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")); } }