internal override SchemaElement Clone(SchemaElement parentElement)
 {
     var parameter = new Parameter((Function)parentElement);
     parameter._collectionKind = _collectionKind;
     parameter._parameterDirection = _parameterDirection;
     parameter._type = _type;
     parameter.Name = Name;
     parameter._typeUsageBuilder = _typeUsageBuilder;
     return parameter;
 }
Beispiel #2
0
        /// <summary>
        ///     Handler for the Parameter Element
        /// </summary>
        /// <param name="reader"> xml reader currently positioned at Parameter Element </param>
        protected void HandleParameterElement(XmlReader reader)
        {
            DebugCheck.NotNull(reader);

            var parameter = new Parameter(this);

            parameter.Parse(reader);

            Parameters.Add(parameter, true, Strings.ParameterNameAlreadyDefinedDuplicate);
        }