Skip to content

Instantly share code, notes, and snippets.

@nanwang2016
Last active November 11, 2020 23:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nanwang2016/aafc2cc0cd9f30bf22eef21644492499 to your computer and use it in GitHub Desktop.
Save nanwang2016/aafc2cc0cd9f30bf22eef21644492499 to your computer and use it in GitHub Desktop.
Namespace in C# Fully Qualified Name
using System;
namespace Greeting
{
public class MorningGreet
{
public void GoodMorning()
{
Console.WriteLine($"Good Morning");
}
}
}
public class TestNamespace
{
public static void Main()
{
Greeting.MorningGreet morning = new Greeting.MorningGreet();
morning.GoodMorning;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment