I am just curious to know if this can be done or not. I don’t plan on doing it if it dosen’t pack some significant performance benefits. I am a web and game developer but I usually don’t develop games in c#.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, it is possible – you can use
ilasm(comes with .NET SDK) to compile your code. There’s no IDE support for that in Visual Studio, however. There aren’t any performance benefits that you can derive from this that you wouldn’t be able to get by other means – specifically, C++/CLI covers all low-level CLR features that may provide some benefit and are inaccessible from C# or VB – most notably, no-copy (ref) unboxing, plain unbounded function pointers (as opposed to delegates) and the associatedcalliIL instruction, andref(managed pointer in CLI parlance) local variables (as opposed to just parameters).