UserSimulation.Classification.AddTypoError C# (CSharp) Method

AddTypoError() public method

public AddTypoError ( Microsoft.FSharp.Core.FSharpOption intended, string entered ) : void
intended Microsoft.FSharp.Core.FSharpOption
entered string
return void
        public void AddTypoError(OptChar intended, string entered)
        {
            var key = new Tuple<OptChar, string>(intended, entered);
            int value;
            if (_typo_dict.TryGetValue(key, out value))
            {
                _typo_dict[key] += 1;
            }
            else
            {
                _typo_dict.Add(key, 1);
            }
        }