-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathProgram.cs
More file actions
35 lines (34 loc) · 1022 Bytes
/
Program.cs
File metadata and controls
35 lines (34 loc) · 1022 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
27
28
29
30
31
32
33
34
35
namespace SQLParser.Example
{
/// <summary>
/// This is an example of how to use the parser.
/// </summary>
internal static class Program
{
/// <summary>
/// Defines the entry point of the application.
/// </summary>
/// <param name="args">The arguments.</param>
private static void Main(string[] args)
{
int Choice;
while (true)
{
Console.WriteLine("Which example would you like to run?");
Console.WriteLine("1. Simple Example");
Console.WriteLine("2. Where Clause Parsing Example");
if (int.TryParse(Console.ReadLine(), out Choice))
break;
}
switch (Choice)
{
case 1:
new SimpleExample().Run();
break;
case 2:
new WhereClauseExample().Run();
break;
}
}
}
}