var exitXamlComp = new CodeMemberMethod()
{
Name = "ExitXaml",
- CustomAttributes = { GeneratedCodeAttrDecl }
+ CustomAttributes = { GeneratedCodeAttrDecl },
+ Attributes = MemberAttributes.Assembly | MemberAttributes.Final
};
exitXamlComp.Statements.Add(new CodeMethodInvokeExpression(new CodeMethodReferenceExpression()