Пример #1
0
 public bool ValidateReference(MetaDataMember member)
 {
     if (member.ToString() == _tokenResolver.ResolveMember(member._metadatatoken).ToString())
     {
         return(false);
     }
     return(true);
 }
Пример #2
0
        private TreeNode CreateTreeNode(MetaDataMember member)
        {
            TreeNode node  = new TreeNode();
            uint     index = (member.MetaDataToken | ((uint)0xFF << 24)) - ((uint)0xFF << 24);

            try
            {
                node.Text = string.Format("{0} ({1})", index, (member is MemberReference ? (member as MemberReference).Name : member.ToString()));
            }
            catch { node.Text = index.ToString(); }
            index++;
            node.Tag = member;
            return(node);
        }
Пример #3
0
 public bool ValidateReference(MetaDataMember member)
 {
     if (member.ToString() == _tokenResolver.ResolveMember(member._metadatatoken).ToString())
         return false;
     return true;
 }