mirror of
https://github.com/markjprice/cs11dotnet7.git
synced 2026-04-06 06:43:47 +00:00
Initial commit
This commit is contained in:
parent
bc96ccb183
commit
18f89e91d4
62 changed files with 1661 additions and 2 deletions
10
vs4win/Chapter05/Namespaces/Program.cs
Normal file
10
vs4win/Chapter05/Namespaces/Program.cs
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
using France;
|
||||
using us = Texas; // us becomes alias for the namespace and it is not imported
|
||||
using Env = System.Environment;
|
||||
|
||||
Paris p1 = new();
|
||||
us.Paris p2 = new();
|
||||
|
||||
WriteLine(Env.OSVersion);
|
||||
WriteLine(Env.MachineName);
|
||||
WriteLine(Env.CurrentDirectory);
|
||||
Loading…
Add table
Add a link
Reference in a new issue