using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
public void ExistKeyWord()
{
bool _KeyExists = false;
SortedDictionary<string, int> _KeyWordList;
_KeyWordList = new SortedDictionary<string, int>();
_KeyWordList.Add("public", 0);
_KeyWordList.Add("private", 1);
_KeyWordList.Add("abc", 2);
_KeyWordList.Add("abcdef", 3);
_KeyExists = _KeyWordList.Keys.Any(k => k.StartsWith("pu"));
Console.WriteLine(_KeyExists.ToString());
_KeyExists = _KeyWordList.Keys.Any(k => k.StartsWith("abck"));
Console.WriteLine(_KeyExists.ToString());
_KeyExists = _KeyWordList.Keys.Any(k => k.StartsWith("abcdef"));
Console.WriteLine(_KeyExists.ToString());
}