XFEExtension
【DLL】XFE各类拓展是一个C#的DLL库,旨在优化C#代码中常用语句的使用,并提供更简洁的访问方式,同时提供Xunit测试框架,快速搭建服务器/客户端,免费ChatGPTAPI接口,免费通讯服务器,XFE下载器,新增格式等
关注
0
Fork
0
Star
0
返回提交历史
Modified
XFEExtension.NetCore.Analyzer/Generator/ImplementAutoGenerator.cs
+1
-1
XFEstudio/XFEExtension
现在自动生成实现类的类为不可继承的密封类型
0cb0c22
代码差异
1 个文件
+1
-1
@@ -43,7 +43,7 @@ namespace XFEExtension.NetCore.Analyzer.Generator
43
43
if (classDeclaration.ParameterList is null)
44
44
{
45
45
implementationClass = SyntaxFactory.ClassDeclaration($"{className}Impl")
46
.AddModifiers(SyntaxFactory.Token(SyntaxKind.InternalKeyword))
46
.AddModifiers(SyntaxFactory.Token(SyntaxKind.InternalKeyword), SyntaxFactory.Token(SyntaxKind.SealedKeyword))
47
47
.AddBaseListTypes(SyntaxFactory.SimpleBaseType(SyntaxFactory.ParseTypeName(className)))
48
48
.AddMembers(classDeclaration.Members.OfType<ConstructorDeclarationSyntax>().Select(constructor =>
49
49
{