Exemplo n.º 1
0
 public void DumpTo(CodeWriter writer, CSharpAttributeScope scopeOverride)
 {
     if (scopeOverride != CSharpAttributeScope.None)
     {
         writer.Write(scopeOverride == CSharpAttributeScope.Return ? "return:" : "assembly:");
     }
     writer.Write(ToText());
 }
Exemplo n.º 2
0
 public CSharpFreeAttribute(CSharpAttributeScope scope, string text)
 {
     Scope = scope;
     Text  = text ?? throw new ArgumentNullException(nameof(text));
 }