/// <summary> /// Determines whether the message part has a specialization child /// matching the given name /// </summary> /// <param name="childName">the name to test</param> /// <returns>true if the name matches</returns> public virtual SpecializationChild GetSpecializationChild(string childName) { SpecializationChild result = null; foreach (SpecializationChild child in this.specializationChilds) { if (child.Name.Equals(childName)) { result = child; break; } } return(result); }
/// <summary>Add a child to the list of child types.</summary> /// <remarks>Add a child to the list of child types.</remarks> /// <param name="specializationChild">- the new child</param> public virtual void AddSpecializationChild(SpecializationChild specializationChild) { this.specializationChilds.Add(specializationChild); }