In my program i have a piece of code which add characters in a dictionary
var listOfSimilarCharacters = new Dictionary<string, string>();
listOfSimilarCharacters.Add("l", "!");
listOfSimilarCharacters.Add("1", "i");
listOfSimilarCharacters.Add("O", "0");
listOfSimilarCharacters.Add("o", "I");
But above in my code i have a property "SimilarCharacters" i need to reed this out and delete the four listOfSimilarCharacters.Add
lines
/// <summary>
/// A constant that is lists all similar characters.
/// </summary>
public const string SimilarCharacters = "l!1iO0oI";
in some way i need to add the chars from SimilarCharacters
in a dictionary and read the SimilarCharacters
out so i can use this instead of the four lines.