Ejemplo n.º 1
0
 internal void CopyFrom(FindCriteriaElement other)
 {
     foreach (ContractTypeNameElement ctn in other.ContractTypeNames)
     {
         ContractTypeNames.Add(new ContractTypeNameElement()
         {
             Name = ctn.Name, Namespace = ctn.Namespace
         });
     }
     Duration = other.Duration;
     foreach (XmlElementElement ext in other.Extensions)
     {
         Extensions.Add(new XmlElementElement()
         {
             XmlElement = (XmlElement)ext.XmlElement.CloneNode(true)
         });
     }
     MaxResults   = other.MaxResults;
     ScopeMatchBy = other.ScopeMatchBy;
     foreach (ScopeElement scope in other.Scopes)
     {
         Scopes.Add(new ScopeElement()
         {
             Scope = scope.Scope
         });
     }
 }
        internal void CopyFrom(FindCriteriaElement source)
        {
            foreach (ContractTypeNameElement contractTypeNameElement in source.ContractTypeNames)
            {
                this.ContractTypeNames.Add(contractTypeNameElement);
            }

            foreach (ScopeElement scopeElement in source.Scopes)
            {
                this.Scopes.Add(scopeElement);
            }

            foreach (XmlElementElement extensionElement in source.Extensions)
            {
                this.Extensions.Add(extensionElement);
            }

            this.ScopeMatchBy = source.ScopeMatchBy;
            this.Duration     = source.Duration;
            this.MaxResults   = source.MaxResults;
        }
Ejemplo n.º 3
0
		internal void CopyFrom (FindCriteriaElement other)
		{
			foreach (ContractTypeNameElement ctn in other.ContractTypeNames)
				ContractTypeNames.Add (new ContractTypeNameElement () { Name = ctn.Name, Namespace = ctn.Namespace });
			Duration = other.Duration;
			foreach (XmlElementElement ext in other.Extensions)
				Extensions.Add (new XmlElementElement () { XmlElement = (XmlElement) ext.XmlElement.CloneNode (true) });
			MaxResults = other.MaxResults;
			ScopeMatchBy = other.ScopeMatchBy;
			foreach (ScopeElement scope in other.Scopes)
				Scopes.Add (new ScopeElement () { Scope = scope.Scope });
		}
        internal void CopyFrom(FindCriteriaElement source)
        {
            foreach (ContractTypeNameElement contractTypeNameElement in source.ContractTypeNames)
            {
                this.ContractTypeNames.Add(contractTypeNameElement);
            }

            foreach (ScopeElement scopeElement in source.Scopes)
            {
                this.Scopes.Add(scopeElement);
            }

            foreach (XmlElementElement extensionElement in source.Extensions)
            {
                this.Extensions.Add(extensionElement);
            }

            this.ScopeMatchBy = source.ScopeMatchBy;
            this.Duration = source.Duration;
            this.MaxResults = source.MaxResults;
        }