Code:
using System;
namespace Sanfoundry.Csharp.Codes
{
class TestClass
{
public TestClass()
{
Console.WriteLine("Class to Demonstrate Namespace");
}
}
}
class MyClient
{
public static void Main()
{
Sanfoundry.Csharp.Codes.TestClass mc = new Sanfoundry.Csharp.Codes.TestClass();
Console.ReadLine();
}
}
Output:
Class to Demonstrate Namespace
More C# Programs: