Ejemplo n.º 1
0
 static T Required <T>(T obj, Type providerType)
 {
     if (Equals(obj, default(T)))
     {
         throw RuntimeFailure.ProviderNotFound(providerType);
     }
     return(obj);
 }