| | | 1 | | using System; |
| | | 2 | | |
| | | 3 | | namespace Test |
| | | 4 | | { |
| | | 5 | | class TestClass |
| | | 6 | | { |
| | | 7 | | public void SampleFunction() |
| | | 8 | | { |
| | 2 | 9 | | string test = string.Format( |
| | 2 | 10 | | "{0} {1}", |
| | 2 | 11 | | "Hello", |
| | 2 | 12 | | "World"); |
| | 2 | 13 | | |
| | | 14 | | Console.WriteLine(test); |
| | 2 | 15 | | int i = 10; |
| | 2 | 16 | | |
| | | 17 | | if (i > 0 || i > 1) |
| | 2 | 18 | | { |
| | 2 | 19 | | Console.WriteLine(i + " is greater that 0"); |
| | 2 | 20 | | } |
| | 2 | 21 | | else |
| | | 22 | | { |
| | 0 | 23 | | Console.WriteLine(i + " is not greater that 0"); |
| | 0 | 24 | | } |
| | 0 | 25 | | } |
| | 2 | 26 | | |
| | | 27 | | public class NestedClass |
| | | 28 | | { |
| | 2 | 29 | | public void SampleFunction() |
| | 2 | 30 | | { |
| | | 31 | | Console.WriteLine( |
| | 2 | 32 | | "{0} {1}", |
| | | 33 | | "Hello", |
| | | 34 | | "World"); |
| | 2 | 35 | | } |
| | 2 | 36 | | } |
| | 2 | 37 | | } |
| | 2 | 38 | | } |