Calling C# Managed code in VB
-
Hi, How can i call C# managed code in VB? , Will it allow me to access all CLR properties? Thanks
-
Hi, How can i call C# managed code in VB? , Will it allow me to access all CLR properties? Thanks
you can reference the C# dll from your VB project and I have no idea what you mean by CLR properties. Whatever you expose in your code is available.
Never underestimate the power of human stupidity RAH
-
Hi, How can i call C# managed code in VB? , Will it allow me to access all CLR properties? Thanks
I suppose you are trying to use a C# library from VBA code? I made a library for Excel recently and this site helped me a lot, maybe it helps you two: a beginner's guide to calling a net library from excel
-
Hi, How can i call C# managed code in VB? , Will it allow me to access all CLR properties? Thanks
-
Hi, How can i call C# managed code in VB? , Will it allow me to access all CLR properties? Thanks
The .Net compiler produces "intermediate language code" from the higher-level language, which is for example C# or VB.Net. This intermediate language code is common to all languages, and this is the code that actually gets executed by the framework. Therefore, if you compile a C# project, it just becomes a .Net assembly; it is almost an executable, it is not your text source file anymore. From the moment that you reference it in your VB.Net project, it becomes available to your VB.Net code as if it was written in VB.Net.
Jean-Christophe Grégoire