In my last blog we saw how to create netmodule any code in .net. Today we well see that how we can use it in an application. So for the implementation of the netmodule in my code I would like to show you a little Managed C++ application that easily consumed it. // HelloWorld.h #using <mscorlib.dll> #using "CSharpHelloWorld.netmodule" using namespace System; // This code wraps the C# class using Managed C++ public __gc class HelloWorldC { public: CSharpHelloWorld __gc *t; // Provide .NET interop ......
Hello geeks after a long time, I write some thing that basically tell what the actually difference between .net assembly and Netmodule file. I illustrate this blog by using the following piece of code block. using System; public class CSharpHelloWorld { public CSharpHelloWorld() {} ///<summary> /// ///</summary> public void displayHelloWorld() { Console.WriteLine("Hello World, from C#!"); } } .Net Assembly File Basically .Net assembly is a compile library that contains code in CIL (Common ......