예제 #1
0
        public static object InvokeActionMethod(this IDDRef objRef, DriverAction action, params object[] objects)
        {
            var method = objRef.GetActionMethod(action);

            if (method == null)
            {
                return(null);
            }

            return(method.Invoke(objRef, objects));
        }
예제 #2
0
 public static DriverAction GetAcceptDriverActions(this IDDRef refObj)
 {
     return(refObj.GetType().GetAcceptDriverActions());
 }
예제 #3
0
 public static IEnumerable <Type> GetDomainTypes(this IDDRef refObj)
 {
     return(refObj.GetType().GetDomainTypes());
 }
예제 #4
0
 public static MethodInfo GetActionMethod(this IDDRef objRef, DriverAction action)
 {
     return(objRef.GetType().GetActionMethod(action));
 }