-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
26 lines (24 loc) · 699 Bytes
/
Program.cs
File metadata and controls
26 lines (24 loc) · 699 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
using System;
using static System.Math;
using static System.Console;
using static UsingStaticDirective.CommonUtil;
namespace UsingStaticDirective
{
/// <summary>
/// https://docs.microsoft.com/en-us/dotnet/csharp/language-reference/keywords/using-static
/// https://stackoverflow.com/questions/31852389/how-do-i-use-the-c6-using-static-feature
/// </summary>
class Program
{
static void Main(string[] args)
{
WriteLine(Sqrt(144));
WriteLine("Hello World!");
WriteLine(GetMessage());
}
}
static class CommonUtil
{
public static string GetMessage() => "Test message from CommonUtil";
}
}