
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | using System; using F = Fishing; namespace Fishing { class Fishing { public void Method() { Console.WriteLine("f.method"); } } } class Program { static void Main(string[] args) { F.Fishing f = new F.Fishing(); f.Method(); // 상세한 위치를 알려줄 때 사용하지만, } // 이걸로 클래스명을 대신할 수는 없다. } | cs |
'C# > C# Concept' 카테고리의 다른 글
[C#] break. continue (0) | 2018.03.22 |
---|---|
[C#] thread 쓰레드 (0) | 2018.03.19 |
[C#] new (0) | 2018.03.19 |
[C#] 인터페이스 (0) | 2018.03.19 |
[C#] 구조체 (0) | 2018.03.19 |