private Type ParseDataType(string dt, string dtValues)
{
string strType = dt;
string[] parts = dt.Split(s_colonArray); // ":"
if (parts.Length > 2)
{
throw ExceptionBuilder.InvalidAttributeValue("type", dt);
}
else if (parts.Length == 2)
{
// CONSIDER: check that we have valid prefix
strType = parts[1];
}
NameType nt = FindNameType(strType);
if (nt == s_enumerationNameType && (dtValues == null || dtValues.Length == 0))
throw ExceptionBuilder.MissingAttribute("type", Keywords.DT_VALUES);
return nt.type;
}