From cf728e6d68743d216d6398dcd68242b6dd01d0d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=87=E9=9B=85=E8=99=8E?= Date: Wed, 8 Nov 2023 14:52:41 +0800 Subject: [PATCH] T:class --- Biwen.AutoClassGen.Attributes/AutoDtoAttribute.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Biwen.AutoClassGen.Attributes/AutoDtoAttribute.cs b/Biwen.AutoClassGen.Attributes/AutoDtoAttribute.cs index 74346f2..4fe5d9f 100644 --- a/Biwen.AutoClassGen.Attributes/AutoDtoAttribute.cs +++ b/Biwen.AutoClassGen.Attributes/AutoDtoAttribute.cs @@ -29,7 +29,7 @@ public AutoDtoAttribute(Type fromType, params string[] excludeProps) /// [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)] #pragma warning disable SA1402 // File may only contain a single type - public class AutoDtoAttribute : AutoDtoAttribute + public class AutoDtoAttribute : AutoDtoAttribute where T : class #pragma warning restore SA1402 // File may only contain a single type { public AutoDtoAttribute(params string[] excludeProps) : base(typeof(T), excludeProps)