public void PointerType() { var type = typeof(string).MakePointerType(); var typeReference = TypeNameParser.ParseType(null, type.AssemblyQualifiedName); Utilities.ValidateType(type, typeReference); }
public void ArrayType() { var type = typeof(string[]); var typeReference = TypeNameParser.ParseType(null, type.AssemblyQualifiedName); Utilities.ValidateType(type, typeReference); }
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); }
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); }