i'm looking for an array matching method.
here i have two arrays as the code shows
char[] normalText = new char[26] {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};
char[] parsedText = new char[26] {'b', 'c', 'd', 'e', 'f', 'g', ...};
and, i want to match them so, if i write "abc" in the program it will turn into "bcd" and, i've made a text parser method like this:
parsing = input.ToCharArray();
foreach (char c in parsing)
{
throw new NotImplementedException();
}
but, i don't know what kind of query should i do to match them after the foreach statement. if you know how to match this in code, please post here, it would be VERY2 APPRECIATED
normalText?normalTextarrays, how are they related to each other? What's the rule to turn the input of "abc" into "bcd"? I'm afraid your question is currently not very clear.Dictionary? msdn.microsoft.com/en-us/library/xfhwa508.aspxarr1[1] = 'a'thereforereturn arr2[1](= 'b')