ToString() 공개 메소드

public ToString ( ) : string
리턴 string
예제 #1
0
파일: Generator.cs 프로젝트: ctguxp/cxxi
	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 (" ", ""));
	}
예제 #2
0
파일: Generator.cs 프로젝트: kthompson/cxxi
    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 (" ", ""));
    }