Fixed trimming error for type converters

pull/303/head
dahall 2022-06-28 16:02:50 -06:00
parent 556798672b
commit 027a8ce228
2 changed files with 2 additions and 0 deletions

View File

@ -230,6 +230,7 @@ namespace Vanara.PInvoke
public override bool GetCreateInstanceSupported(ITypeDescriptorContext context) => true;
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("")]
public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes)
{
PropertyDescriptorCollection props = TypeDescriptor.GetProperties(typeof(POINT), attributes);

View File

@ -478,6 +478,7 @@ namespace Vanara.PInvoke
public override bool GetCreateInstanceSupported(ITypeDescriptorContext context) => true;
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("")]
public override PropertyDescriptorCollection GetProperties(ITypeDescriptorContext context, object value, Attribute[] attributes)
{
var props = TypeDescriptor.GetProperties(typeof(RECT), attributes);