protected virtual void Write(IndentedTextWriter writer, CodeMethodArgumentDeclaration arg)
 {
     Write(writer, arg.CustomAttributes);
     Write(writer, arg.Direction);
     Write(writer, arg.Type);
     writer.Write(" ");
     WriteIdentifier(writer, arg.Name);
     if (arg.DefaultValue != null)
     {
         writer.Write(" = ");
         Write(writer, arg.DefaultValue);
     }
 }
Beispiel #2
0
 public static CodeMethodArgumentDeclaration AddArgument(this CodeMethodDeclaration method, CodeMethodArgumentDeclaration argument)
 {
     method.Arguments.Add(argument);
     return(argument);
 }