GetFullName() 공개 메소드

public GetFullName ( ) : string
리턴 string
예제 #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);
        }
예제 #2
0
        public static XDef ParseAndCheck(string input)
        {
            XDef def = new XDef(input);

            string fullname = def.GetFullName();

            Debug.Assert(fullname == input);

            return def;
        }
예제 #3
0
        public static XDef ParseAndCheck(string input)
        {
            XDef def = new XDef(input);

            string fullname = def.GetFullName();

            Debug.Assert(fullname == input);

            return(def);
        }