public override ICustomTypeDescriptor GetTypeDescriptor(Type objectType, object instance)
{
if (objectType == null)
{
throw new ArgumentNullException(nameof(objectType));
}
if (instance != null && !objectType.GetTypeInfo().IsInstanceOfType(instance))
{
throw new ArgumentException(nameof(instance));
}
return new DefaultTypeDescriptor(this, objectType, instance);
}