Esempio n. 1
0
        public void PointerType()
        {
            var type          = typeof(string).MakePointerType();
            var typeReference = TypeNameParser.ParseType(null, type.AssemblyQualifiedName);

            Utilities.ValidateType(type, typeReference);
        }
Esempio n. 2
0
        public void ArrayType()
        {
            var type          = typeof(string[]);
            var typeReference = TypeNameParser.ParseType(null, type.AssemblyQualifiedName);

            Utilities.ValidateType(type, typeReference);
        }
Esempio n. 3
0
        public void NestedType()
        {
            var type          = typeof(DebuggableAttribute.DebuggingModes);
            var typeReference = TypeNameParser.ParseType(null, type.AssemblyQualifiedName);

            Utilities.ValidateType(type, typeReference);
            Utilities.ValidateAssembly(new ReflectionAssemblyNameWrapper(type.Assembly.GetName()),
                                       typeReference.GetElementType().DeclaringTypeDescriptor.ResolutionScope as AssemblyReference);
        }
Esempio n. 4
0
        public void SimpleType()
        {
            var type          = typeof(string);
            var typeReference = TypeNameParser.ParseType(null, type.AssemblyQualifiedName);

            Utilities.ValidateType(type, typeReference);
            Utilities.ValidateAssembly(new ReflectionAssemblyNameWrapper(type.Assembly.GetName()),
                                       typeReference.ResolutionScope as AssemblyReference);
        }