public IDataType GetType(string typeName) { IDataType foundType = null; foreach (var finder in typeFinders) { foundType = finder.GetType(typeName); if (foundType != null && foundType.GetTargetType() != null) { break; } } if (foundType == null || foundType.GetTargetType() == null) { throw new UnableToReadXMLTextException(string.Format("Unable to find type '{0}'.", typeName)); } return(foundType); }