示例#1
0
        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);
        }
示例#2
0
            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));
            }
示例#3
0
 public MethodEditingConverter(MethodPropertyDescriptor method)
 {
     this.method = method;
 }
示例#4
0
 public ReturnParameterDescriptor(MethodPropertyDescriptor method)
     : base("Return (" + method.MethodInfo.ReturnType.Name + ")", null)
 {
     this.method     = method;
     this.returnType = method.MethodInfo.ReturnType;
 }
示例#5
0
 public ParameterPropertyDescriptor(MethodPropertyDescriptor methodDesc, ParameterInfo param)
     : base(param.Name + " (" + param.ParameterType.Name + ")", null)
 {
     this.methodDesc = methodDesc;
     this.param      = param;
 }
 public MethodPropertyValueHolder(MethodPropertyDescriptor method)
 {
     this.method = method;
 }