예제 #1
0
 private bool CanAddContractClassIfNecessary(ICSharpFunctionDeclaration selectedFunction,
                                             out AddContractClassAvailability addContractAvailability)
 {
     // Adding contract class could be unavailable, thats ok, because this "combo" part is optional!
     addContractAvailability = AddContractClassAvailability.IsAvailableForSelectedMethod(_provider, selectedFunction);
     return(true);
 }
 private bool CanAddContractForSelectedMethod(ICSharpFunctionDeclaration selectedFunction,
                                              out AddContractClassAvailability addContractAvailability)
 {
     addContractAvailability = AddContractClassAvailability.IsAvailableForSelectedMethod(_provider, selectedFunction);
     return(addContractAvailability.IsAvailable);
 }