XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFEExtension.NetCore.AutoImplement

【DLL】自动生成实现类

公开
关注 0 Fork 0 Star 0
UTF-8
namespace XFEExtension.NetCore.AutoImplement.Test;

[CreateImpl("MyTestClassA")]
[CreateImpl("MyTestClassB", Modifiers = ["public", "partial"])]
[CreateImpl("MyTestClassC", Modifiers = new string[] { "public", "partial" })]
public abstract class MyTestClass<T, F>(T obj, F obj2) where T : class where F : new()
{
    public T TProperty { get; set; } = obj;
    public F FProperty { get; set; } = obj2;
}