public static FASTType GetType(string typeName) { if (!TYPE_NAME_MAP.Contains(typeName)) { throw new ArgumentException("The type named " + typeName + " does not exist. Existing types are " + Util.CollectionToString(new SupportClass.HashSetSupport(TYPE_NAME_MAP.Keys))); } return((FASTType)TYPE_NAME_MAP[typeName]); }
protected internal virtual FASTType GetType(System.Xml.XmlElement fieldNode, ParsingContext context) { string typeName = GetTypeName(fieldNode); if (!context.TypeMap.Contains(typeName)) { context.ErrorHandler.Error(XMLMessageTemplateLoader.INVALID_TYPE, "The type " + typeName + " is not defined. Possible types: " + Util.CollectionToString(new SupportClass.HashSetSupport(context.TypeMap.Keys), ", ")); } return((FASTType)context.TypeMap[typeName]); }