Skip to content

Commit

Permalink
T:class
Browse files Browse the repository at this point in the history
  • Loading branch information
vipwan committed Nov 8, 2023
1 parent 9356584 commit cf728e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Biwen.AutoClassGen.Attributes/AutoDtoAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public AutoDtoAttribute(Type fromType, params string[] excludeProps)
/// </summary>
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
#pragma warning disable SA1402 // File may only contain a single type
public class AutoDtoAttribute<T> : AutoDtoAttribute
public class AutoDtoAttribute<T> : AutoDtoAttribute where T : class
#pragma warning restore SA1402 // File may only contain a single type
{
public AutoDtoAttribute(params string[] excludeProps) : base(typeof(T), excludeProps)
Expand Down

0 comments on commit cf728e6

Please sign in to comment.