module_create_use.htm

using System;
//csc /t:module test_module_1.cs
//no paramater
namespace string_module
{
public class string_output
{
public void a_string()
{
Console.WriteLine("Hello Wrold.");
}
}
}
 

using string_module;
using System;
//use namespace as reference
//The namespace created in test_module_1.netmodule.
//csc /addmodule:test_module_1.netmodule test_module_test_1.cs
class test
{
// Static method Main is the entry point method.
public static void Main()
{
string_output my_string = new string_output();
Console.WriteLine("Client code executes");
//myStringComp.Stringer();
my_string.a_string();
}
}
 

Compile

Results