You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cmm.ReturnType = new CodeTypeReference("System.Void");
// Create a method invoke statement to output the string passed to the method.
CodeMethodInvokeExpression cmie = new CodeMethodInvokeExpression(new CodeTypeReferenceExpression("Console"), "WriteLine", new CodeArgumentReferenceExpression("text"));
// Add the method invoke expression to the method's statements collection.
cmm.Statements.Add(cmie);
// A C# code generator produces the following source code for the preceeding example code: