TSF.UmlToolingFramework.Wrappers.EA.Model.taggedValueTypeExists C# (CSharp) Method

taggedValueTypeExists() public method

checks if a tagged value type with the given name exists in the current model
public taggedValueTypeExists ( string tagName ) : bool
tagName string the name of the tagged value type
return bool
        public bool taggedValueTypeExists(string tagName)
        {
            this.wrappedModel.PropertyTypes.Refresh();
            foreach (global::EA.PropertyType taggedValueType in this.wrappedModel.PropertyTypes)
            {
            string tagTypeName = taggedValueType.Tag;
            //ignore case or EA will complain
            if (taggedValueType.Tag.Equals(tagName,StringComparison.InvariantCultureIgnoreCase))
            {
                return true;
            }
            }
            return false;
        }