GetContract() публичный статический Метод

public static GetContract ( Type contractType ) : ContractDescription
contractType System.Type
Результат ContractDescription
Пример #1
0
 public static ContractDescription GetContract(
     Type contractType)
 {
     if (contractType == null)
     {
         throw new ArgumentNullException("contractType");
     }
     return(ContractDescriptionGenerator.GetContract(contractType));
 }
Пример #2
0
 public static ContractDescription GetContract(
     Type contractType, object serviceImplementation)
 {
     if (contractType == null)
     {
         throw new ArgumentNullException("contractType");
     }
     if (serviceImplementation == null)
     {
         throw new ArgumentNullException("serviceImplementation");
     }
     return(ContractDescriptionGenerator.GetContract(contractType, serviceImplementation));
 }
Пример #3
0
 public static ContractDescription GetContract(
     Type contractType, Type serviceType)
 {
     return(ContractDescriptionGenerator.GetContract(contractType, serviceType));
 }
Пример #4
0
 public static ContractDescription GetContract(
     Type contractType, object serviceImplementation)
 {
     return(ContractDescriptionGenerator.GetContract(contractType, serviceImplementation));
 }