GetAssociation() private method

private GetAssociation ( Type type, object primary ) : object
type System.Type
primary object
return object
Esempio n. 1
0
 protected static object GetInvokee(Type componentClass, object component)
 {
     if (componentClass == null)
     {
         throw new ArgumentNullException("componentClass");
     }
     if (component == null)
     {
         throw new ArgumentNullException("component");
     }
     return(TypeDescriptor.GetAssociation(componentClass, component));
 }
Esempio n. 2
0
 protected virtual object GetInvocationTarget(Type type, object instance)
 {
     if (type == null)
     {
         throw new ArgumentNullException("type");
     }
     if (instance == null)
     {
         throw new ArgumentNullException("instance");
     }
     return(TypeDescriptor.GetAssociation(type, instance));
 }