public static Action ( int args ) : |
||
args | int | |
Résultat |
static CodeMemberMethod XA(int args) { var t = new CodeTypeReference("System.Linq.Expressions.Expression", Types.Action(args)); var m = CreateMethod("XA", t, "expr", args, false); m.Comments.AddDocs( XmlDocs.TypeParams(m.TypeParameters, t), XmlDocs.Param("expr", "The " + XmlDocs.See(t) + " to return."), XmlDocs.Summary("Creates a " + XmlDocs.See(t) + " expression tree."), XmlDocs.Returns("Returns <paramref name=\"expr\" />.") ); return(m); }
static CodeMemberMethod A(int args) { var t = Types.Action(args); var m = CreateMethod("A", t, "lambda", args, false); m.Comments.AddDocs( XmlDocs.TypeParams(m.TypeParameters, t), XmlDocs.Param("lambda", "The " + XmlDocs.See(t) + " to return."), XmlDocs.Summary("Creates a " + XmlDocs.See(t) + " delegate."), XmlDocs.Returns("Returns <paramref name=\"lambda\" />.") ); return(m); }