public string GetRandomName(NameType nameType, BaseObfuscateItem obfuscateItem) { string newName = string.Empty; if (NameCollectionDic.ContainsKey(nameType)) { newName = NameCollectionDic[nameType].GetAName(obfuscateItem); } return(newName); }
public bool AlreadyHaveRandomName(NameType nameType, BaseObfuscateItem obfuscateItem) { bool result = false; if (NameCollectionDic.ContainsKey(nameType)) { result = NameCollectionDic[nameType].AlreadHanveRandomName(obfuscateItem); } return(result); }
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); }
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)); }