/// <summary> /// Creates an instance of the tag definition specified by this configuration element /// </summary> /// <returns>The tag definition instance</returns> public ITagDefinition CreateTagDefinition() { if (ConstructorArguments == null || ConstructorArguments.Count == 0) { return((ITagDefinition)Activator.CreateInstance(TagDefinitionType)); } object[] args = ConstructorArguments.Cast <ArgumentConfigurationElement>().Select(elem => elem.Value).ToArray(); return((ITagDefinition)Activator.CreateInstance(TagDefinitionType, args)); }