예제 #1
0
 public override ParameterInfo[] GetParameters()
 {
     if (this.parameters == null)
     {
         CodeParameterDeclarationExpressionCollection parameters = this.codeConstructor.Parameters;
         ParameterInfo[] infoArray = new ParameterInfo[parameters.Count];
         for (int i = 0; i < parameters.Count; i++)
         {
             infoArray[i] = new DesignTimeParameterInfo(parameters[i], i, this);
         }
         this.parameters = infoArray;
     }
     return(this.parameters);
 }
 public override ParameterInfo[] GetParameters()
 {
     if (this.parameters == null)
     {
         CodeParameterDeclarationExpressionCollection parameters = this.codeConstructor.Parameters;
         ParameterInfo[] infoArray = new ParameterInfo[parameters.Count];
         for (int i = 0; i < parameters.Count; i++)
         {
             infoArray[i] = new DesignTimeParameterInfo(parameters[i], i, this);
         }
         this.parameters = infoArray;
     }
     return this.parameters;
 }
예제 #3
0
        public override ParameterInfo[] GetParameters()
        {
            if (this.parameters == null)
            {
                // Get the parameters
                CodeParameterDeclarationExpressionCollection parameters = codeConstructor.Parameters;
                ParameterInfo[] paramArray = new ParameterInfo[parameters.Count];

                for (int index = 0; index < parameters.Count; index++)
                {
                    paramArray[index] = new DesignTimeParameterInfo(parameters[index], index, this);
                }
                this.parameters = paramArray;
            }

            return this.parameters; // 
        }
예제 #4
0
        public override ParameterInfo[] GetParameters()
        {
            if (this.parameters == null)
            {
                // Get the parameters
                CodeParameterDeclarationExpressionCollection parameters = codeConstructor.Parameters;
                ParameterInfo[] paramArray = new ParameterInfo[parameters.Count];

                for (int index = 0; index < parameters.Count; index++)
                {
                    paramArray[index] = new DesignTimeParameterInfo(parameters[index], index, this);
                }
                this.parameters = paramArray;
            }

            return(this.parameters); //
        }
예제 #5
0
 public override ParameterInfo[] GetParameters()
 {
     if (this.parameters == null)
     {
         CodeParameterDeclarationExpressionCollection parameters = this.property.CodeMemberProperty.Parameters;
         ParameterInfo[] infoArray = new ParameterInfo[this.IsGetter ? parameters.Count : (parameters.Count + 1)];
         for (int i = 0; i < parameters.Count; i++)
         {
             infoArray[i] = new DesignTimeParameterInfo(parameters[i], i, this.property);
         }
         if (!this.IsGetter)
         {
             CodeParameterDeclarationExpression codeParameter = new CodeParameterDeclarationExpression(this.property.CodeMemberProperty.Type.BaseType, "value")
             {
                 Direction = FieldDirection.In
             };
             infoArray[parameters.Count] = new DesignTimeParameterInfo(codeParameter, 0, this.property);
         }
         this.parameters = infoArray;
     }
     return(this.parameters);
 }
예제 #6
0
            public override ParameterInfo[] GetParameters()
            {
                if (this.parameters == null)
                {
                    // Get the parameters
                    CodeParameterDeclarationExpressionCollection parameters = this.property.CodeMemberProperty.Parameters;
                    ParameterInfo[] paramArray = new ParameterInfo[this.IsGetter ? parameters.Count : parameters.Count + 1];

                    for (int index = 0; index < parameters.Count; index++)
                    {
                        paramArray[index] = new DesignTimeParameterInfo(parameters[index], index, this.property);
                    }
                    if (!this.IsGetter)
                    {
                        CodeParameterDeclarationExpression valueParameter = new CodeParameterDeclarationExpression(this.property.CodeMemberProperty.Type.BaseType, "value");
                        valueParameter.Direction     = FieldDirection.In;
                        paramArray[parameters.Count] = new DesignTimeParameterInfo(valueParameter, 0, this.property);
                    }
                    this.parameters = paramArray;
                }

                return(this.parameters); //
            }
예제 #7
0
            public override ParameterInfo[] GetParameters()
            {
                if (this.parameters == null)
                {
                    // Get the parameters
                    CodeParameterDeclarationExpressionCollection parameters = this.property.CodeMemberProperty.Parameters;
                    ParameterInfo[] paramArray = new ParameterInfo[this.IsGetter ? parameters.Count : parameters.Count + 1];

                    for (int index = 0; index < parameters.Count; index++)
                    {
                        paramArray[index] = new DesignTimeParameterInfo(parameters[index], index, this.property);
                    }
                    if (!this.IsGetter)
                    {
                        CodeParameterDeclarationExpression valueParameter = new CodeParameterDeclarationExpression(this.property.CodeMemberProperty.Type.BaseType, "value");
                        valueParameter.Direction = FieldDirection.In;
                        paramArray[parameters.Count] = new DesignTimeParameterInfo(valueParameter, 0, this.property);
                    }
                    this.parameters = paramArray;
                }

                return this.parameters; // 
            }
 public override ParameterInfo[] GetParameters()
 {
     if (this.parameters == null)
     {
         CodeParameterDeclarationExpressionCollection parameters = this.property.CodeMemberProperty.Parameters;
         ParameterInfo[] infoArray = new ParameterInfo[this.IsGetter ? parameters.Count : (parameters.Count + 1)];
         for (int i = 0; i < parameters.Count; i++)
         {
             infoArray[i] = new DesignTimeParameterInfo(parameters[i], i, this.property);
         }
         if (!this.IsGetter)
         {
             CodeParameterDeclarationExpression codeParameter = new CodeParameterDeclarationExpression(this.property.CodeMemberProperty.Type.BaseType, "value") {
                 Direction = FieldDirection.In
             };
             infoArray[parameters.Count] = new DesignTimeParameterInfo(codeParameter, 0, this.property);
         }
         this.parameters = infoArray;
     }
     return this.parameters;
 }