Exemplo n.º 1
0
 // Calling "Add" command creates a new method, but that's all. You can't set method
 // name, the body nort anything else.
 void CallAddMethodCommand(ClassItem c)
 {
     if (c.CanExecuteAdd(Method.DomainClassId))
     {
         c.ExecuteAdd(Method.DomainClassId);
     }
 }
Exemplo n.º 2
0
 // Calling "Add" command creates a new method, but that's all. You can't set method
 // name, the body nort anything else.
 void CallAddMethodCommand(ClassItem c)
 {
     if (c.CanExecuteAdd(Method.DomainClassId))
     {
         c.ExecuteAdd(Method.DomainClassId);
     }
 }