namespace College { namespace Lib { class Book { public void Issue() { // Implementation code } } class Journal { public void Issue() { // Implementation code } } } }
College.Lib.Book b = new College.Lib.Book(); b.Issue();
Book b = new Book(); b.Issue();
using College.Lib; Book b = new Book(); b.Issue();
using College; Lib.Book b = new Lib.Book(); b.Issue();
using College.Lib.Book; Book b = new Book(); b.Issue();
namespace CuriousTabConsoleApplication ( class Sample { private enum color : int { red, green, blue } public void fun() { Console.WriteLine(color.red); } } class Program { static void Main(string[ ] args) { // Use enum color here } } }
int a = 10; int b = 20; int c = 30; enum color: byte { red = a, green = b, blue = c }
namespace CuriousTabConsoleApplication
{
class MyProgram
{
static void Main(string[] args)
{
import n1;
Point x = new Point();
x.fun();
import n2;
Point y = new Point();
y.fun();
}
}
}
import n1;
import n2;
namespace CuriousTabConsoleApplication
{
class MyProgram
{
static void Main(string[] args)
{
n1.Point x = new n1.Point();
x.fun();
n2.Point y = new n2.Point();
y.fun();
}
}
}
namespace CuriousTabConsoleApplication
{
class MyProgram
{
static void Main(string[] args)
{
using n1;
Point x = new Point();
x.fun();
using n2;
Point y = new Point();
y.fun();
}
}
}
using n1;
using n2;
namespace CuriousTabConsoleApplication
{
class MyProgram
{
static void Main(string[] args)
{
n1.Point x = new n1.Point();
x.fun();
n2.Point y = new n2.Point();
y.fun();
}
}
}
using n1;
using n2;
namespace CuriousTabConsoleApplication
{
class MyProgram
{
static void Main(string[] args)
{
n1.Point x = new n1.Point();
x.fun();
n2.Point y = new n2.Point();
y.fun();
}
}
}
Comments
There are no comments.Copyright ©CuriousTab. All rights reserved.