public static ArrayList GetMethodParams(MethodPropertyDescriptor methodDesc)
        {
            ArrayList list = new ArrayList();

            ParameterInfo[] paramInfo = methodDesc.MethodInfo.GetParameters();
            for (int i = 0; i < paramInfo.Length; i++)
            {
                ParameterInfo param = paramInfo[i];
                list.Add(new ParameterPropertyDescriptor(methodDesc, param));
            }
            return(list);
        }
            public int Compare(object x, object y)
            {
                if (x == null && y == null)
                {
                    return(0);
                }
                if (x == null)
                {
                    return(1);
                }
                if (y == null)
                {
                    return(-1);
                }
                MethodPropertyDescriptor mx = (MethodPropertyDescriptor)x;
                MethodPropertyDescriptor my = (MethodPropertyDescriptor)y;

                return(String.Compare(mx.MethodInfo.Name, my.MethodInfo.Name));
            }
Beispiel #3
0
 public ReturnParameterDescriptor(MethodPropertyDescriptor method)
     : base("Return (" + method.MethodInfo.ReturnType.Name + ")", null)
 {
     this.method     = method;
     this.returnType = method.MethodInfo.ReturnType;
 }
 public ParameterPropertyDescriptor(MethodPropertyDescriptor methodDesc, ParameterInfo param)
     : base(param.Name + " (" + param.ParameterType.Name + ")", null)
 {
     this.methodDesc = methodDesc;
     this.param      = param;
 }
Beispiel #5
0
 public MethodEditingConverter(MethodPropertyDescriptor method)
 {
     this.method = method;
 }
Beispiel #6
0
 public MethodPropertyValueHolder(MethodPropertyDescriptor method)
 {
     this.method = method;
 }