GetFullName() public method

public GetFullName ( ) : string
return string
Esempio n. 1
0
        public string GetFullName()
        {
            string fullname = Name;

            if (DefType == XDefType.Root)
            {
                fullname = SubDef.GetFullName();
            }

            if (DefType == XDefType.Namespace)
            {
                fullname += "." + SubDef.GetFullName();
            }

            if (GenericCount != null)
            {
                fullname += "`" + GenericCount.Value.ToString();
            }

            if (Generics != null)
            {
                fullname += "<" + String2.Join(",", Generics.Select(g => g.GetFullName())) + ">";
            }

            if (Arrays != null)
            {
                fullname += Arrays;
            }
            //fullname += "[" + string.Join(",", Arrays.Select(g => g.GetFullName())) + "]";

            // nested classes
            if (DefType == XDefType.Class && SubDef != null)
            {
                fullname += "/" + SubDef.GetFullName();
            }

            if (Remains != null)
            {
                fullname += Remains;
            }

            if (Mods != null)
            {
                fullname += Mods;
            }

            return(fullname);
        }
Esempio n. 2
0
        public static XDef ParseAndCheck(string input)
        {
            XDef def = new XDef(input);

            string fullname = def.GetFullName();

            Debug.Assert(fullname == input);

            return def;
        }
Esempio n. 3
0
        public static XDef ParseAndCheck(string input)
        {
            XDef def = new XDef(input);

            string fullname = def.GetFullName();

            Debug.Assert(fullname == input);

            return(def);
        }