I think the function you are looking for is IndexOf()
. This is the equivalent of your find
call above:
foreach (var uniqueKey in message)
{
var num = CHARACTER.IndexOf(uniqueKey);
if (num >= 0)
{
...
}
}
4
solved C# for loop and encryption [closed]