From 027a8ce2281d7c4fd2b2ff25ba15d72fef6cda39 Mon Sep 17 00:00:00 2001 From: dahall Date: Tue, 28 Jun 2022 16:02:50 -0600 Subject: [PATCH] Fixed trimming error for type converters --- PInvoke/Shared/WinDef/POINT.cs | 1 + PInvoke/Shared/WinDef/RECT.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/PInvoke/Shared/WinDef/POINT.cs b/PInvoke/Shared/WinDef/POINT.cs index 3dc176c9..8000048c 100644 --- a/PInvoke/Shared/WinDef/POINT.cs +++ b/PInvoke/Shared/WinDef/POINT.cs @@ -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); diff --git a/PInvoke/Shared/WinDef/RECT.cs b/PInvoke/Shared/WinDef/RECT.cs index 2c2e98c8..efca7338 100644 --- a/PInvoke/Shared/WinDef/RECT.cs +++ b/PInvoke/Shared/WinDef/RECT.cs @@ -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);