// ------------------------------- // - Begin public methods region - // ------------------------------- /// <summary> /// Try to map actual Attributes to Attribute specifications. /// </summary> /// <param name="attributeSet">The actual Attributes to map.</param> /// <param name="sortedAttributeListSpecification">The Attribute specifications to map to.</param> /// <returns> /// Indicates if all supplied actual Attributes and their direct and indirect /// Attribute childs have been mapped. /// </returns> public static bool Map(AttributeSet attributeSet, SortedAttributeListSpecification sortedAttributeListSpecification) { bool attributesMapped = true; foreach (Attribute attribute in attributeSet) { bool attributeMapped = Map(attribute, sortedAttributeListSpecification); attributesMapped = (attributesMapped && attributeMapped); } return (attributesMapped); }
// ------------------------------ // - End private methods region - // ------------------------------ #endregion #region - Public methods - // ------------------------------- // - Begin public methods region - // ------------------------------- /// <summary> /// Try to map actual Attributes to Attribute specifications. /// </summary> /// <param name="attributeSet">The actual Attributes to map.</param> /// <param name="sortedAttributeListSpecification">The Attribute specifications to map to.</param> /// <returns> /// Indicates if all supplied actual Attributes and their direct and indirect /// Attribute childs have been mapped. /// </returns> public static bool Map(AttributeSet attributeSet, SortedAttributeListSpecification sortedAttributeListSpecification) { bool attributesMapped = true; foreach (Attribute attribute in attributeSet) { bool attributeMapped = Map(attribute, sortedAttributeListSpecification); attributesMapped = (attributesMapped && attributeMapped); } return(attributesMapped); }