Added BaseType "Attribute" to DNAClassAttribute generator function and regenerated the source.
This commit is contained in:
@@ -245,8 +245,10 @@ namespace CodeGenerator {
|
||||
IsClass = true,
|
||||
Attributes = MemberAttributes.Public
|
||||
};
|
||||
ctd.BaseTypes.Add(new CodeTypeReference(typeof(Attribute)));
|
||||
ctd.CustomAttributes.Add(new("AttributeUsage",
|
||||
new CodeAttributeArgument(new CodeSnippetExpression("AttributeTargets.Class"))));
|
||||
|
||||
|
||||
var cmf = new CodeMemberField(typeof(int), "_originalIndex") {
|
||||
Attributes = MemberAttributes.Private
|
||||
|
||||
Reference in New Issue
Block a user