public CSharpLanguage()
 {
     _codeProvider = new CSharpCodeProvider();
     using (var fileStream = File.Open(Path.Combine(Application.StartupPath, "Languages", "Net", "CSharp.xml"), FileMode.Open, FileAccess.Read))
     {
         var serializer = new XmlSerializer(typeof(NetLanguageData));
         _data = (NetLanguageData)serializer.Deserialize(fileStream);
     }
     _keywords = _data.Keywords.MergeWith(_data.Modifiers).MergeWith(_data.MemberIdentifiers);
 }
Ejemplo n.º 2
0
 public CSharpLanguage()
 {
     _codeProvider = new CSharpCodeProvider();
     using (var fileStream = File.Open(Path.Combine(Application.StartupPath, "Languages", "Net", "CSharp.xml"), FileMode.Open, FileAccess.Read))
     {
         var serializer = new XmlSerializer(typeof(NetLanguageData));
         _data = (NetLanguageData)serializer.Deserialize(fileStream);
     }
     _keywords = _data.Keywords.MergeWith(_data.Modifiers).MergeWith(_data.MemberIdentifiers);
 }