public Filter GetFilterOrDefault (CppType cpptype) { var fqn = cpptype.ElementTypeName; if (cpptype.Namespaces != null) fqn = string.Join ("::", cpptype.Namespaces) + "::" + fqn; var newtype = new CppType (fqn, cpptype.Modifiers.Where (m => m == CppModifiers.Template)); return GetFilterOrDefault (newtype.ToString ().Replace (" ", "")); }
public Filter GetFilterOrDefault(CppType cpptype) { var fqn = cpptype.ElementTypeName; // Convert any template types to their managed names var mod = cpptype.Modifiers.FirstOrDefault(m => m == CppModifiers.Template); if (mod != null) fqn = CreateTemplateClassName(fqn, mod.ToString()); if (cpptype.Namespaces != null) fqn = string.Join ("::", cpptype.Namespaces) + "::" + fqn; var newtype = new CppType (fqn, null); return GetFilterOrDefault (newtype.ToString ().Replace (" ", "")); }