示例#1
0
        public string GetRandomName(NameType nameType, BaseObfuscateItem obfuscateItem)
        {
            string newName = string.Empty;

            if (NameCollectionDic.ContainsKey(nameType))
            {
                newName = NameCollectionDic[nameType].GetAName(obfuscateItem);
            }

            return(newName);
        }
示例#2
0
        public bool AlreadyHaveRandomName(NameType nameType, BaseObfuscateItem obfuscateItem)
        {
            bool result = false;

            if (NameCollectionDic.ContainsKey(nameType))
            {
                result = NameCollectionDic[nameType].AlreadHanveRandomName(obfuscateItem);
            }

            return(result);
        }
示例#3
0
            public string GetAName(BaseObfuscateItem obfuscateItem)
            {
                string newName = string.Empty;

                if (!old_new_Dic.TryGetValue(obfuscateItem, out newName))
                {
                    newName = GetAName();
                    old_new_Dic.Add(obfuscateItem, newName);
                    new_old_Dic.Add(newName, obfuscateItem);
                }

                return(newName);
            }
示例#4
0
 public bool AlreadHanveRandomName(BaseObfuscateItem obfuscateItem)
 {
     return(old_new_Dic.ContainsKey(obfuscateItem));
 }
 public override bool Equals(BaseObfuscateItem other)
 {
     return(other is FieldObfuscateItem && Equals((FieldObfuscateItem)other));
 }
 public override bool Equals(BaseObfuscateItem other)
 {
     return(other is PropertyObfuscateItem && Equals((PropertyObfuscateItem)other));
 }
 public override bool Equals(BaseObfuscateItem other)
 {
     return(other is NamespaceObfuscateItem && Equals((NamespaceObfuscateItem)other));
 }