コード例 #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);
     }
 }
コード例 #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);
     }
 }