static string StripGenerics (string str) { int idx = str.IndexOf ('<'); if (idx > 0) return str.Substring (0, idx); return str; }