Skip to content

Assembly.GetType(string, bool) throws ArgumentException #398

@MatthiasJentsch

Description

@MatthiasJentsch

Details about Problem

nanoFramework area: mscorlib preview 62

Worked before? No

Detailed repro steps so we can see the same problem

using System;
using System.Reflection;

namespace NFApp1
{
	public class Program
	{
		public static void Main()
		{
			Assembly a = Assembly.GetAssembly(typeof(Program));
			Type t = a.GetType("NotExistingType", false);
		}
	}
}

The last line throws always an ArgumentException if the type is not found. But with second parameter set to false the method should return null if the type was not found.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions