示例#1
0
        /// <summary>
        /// Finds the structure type corresponding to a group tag.
        /// </summary>
        /// <param name="groupTag">The string representation of the group tag of the group to search for.</param>
        /// <returns>The structure type if found, or <c>null</c> otherwise.</returns>
        public static Type FindByGroupTag(string groupTag)
        {
            Type result;

            TypesByGroup.TryGetValue(groupTag, out result);
            return(result);
        }
示例#2
0
 public static bool IsGroupTag(string groupTag) =>
 TypesByGroup.ContainsKey(groupTag);