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