I am looking for an option to compile C# syntax to native code (or maybe to C++?). I am not interested in having all the libraries that are officially part of the language, just being able to write programs the same as I write my C++ programs, but using language constructs such as partial classes, properties, lambdas, generics, etc.
- Is there such a thing?
- If there isn't, is such a thing even possible, or am I misunderstanding something fundamental about C#?
IDisposableand theusingstatement).ArrayandStringcan be included without having to write the whole BCL/FCL/CLR/whatever it is called.Object,Type,Array,String, etc. Also, the using statement is a compiler construct; it has nothing to do with the BCL.