var fromChars = new [] {'a', 'b', 'c'};
var toChars = new [] {'n', 'o', 'p'};
var result = new char[txt.Length];
for (var i=0; i < txt.Length; i++)
{
result[i] = toChars[fromChars.IndexOf(txt[i])];
}
Clipboard.SetText(result.ToString());
var fromChars = new [] {'a', 'b', 'c'};
var toChars = new [] {'n', 'o', 'p'};
var result = new char[txt.Length];
for (var i=0; i < txt.Length; i++)
{
result[i] = toChars[fromChars.IndexOf(txt[i])];
}
Clipboard.SetText(result.ToString());