Ejemplo n.º 1
0
        public Class GetReference(string full_name, Location location)
        {
            ClassTableItem item = table[full_name] as ClassTableItem;

            if (item != null)
            {
                item.LocationList.Add(location);
                return(item.Class);
            }

            string name_space, name;

            GetNameAndNamespace(full_name, out name_space, out name);
            ClassDef klass = pefile.AddClass(DefaultAttr, name_space, name);

            AddReference(full_name, klass, location);

            return(klass);
        }