touchvg.core.MgCommandDraw.SwigDerivedClassHasMethod C# (CSharp) Метод

SwigDerivedClassHasMethod() приватный Метод

private SwigDerivedClassHasMethod ( string methodName, Type methodTypes ) : bool
methodName string
methodTypes Type
Результат bool
  private bool SwigDerivedClassHasMethod(string methodName, Type[] methodTypes) {
    System.Reflection.MethodInfo methodInfo = this.GetType().GetMethod(methodName, System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance, null, methodTypes, null);
    bool hasDerivedMethod = methodInfo.DeclaringType.IsSubclassOf(typeof(MgCommandDraw));
    return hasDerivedMethod;
  }