This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class App | |
{ | |
public static void Main() | |
{ | |
string[] values = { "One", "Two", "Three", "Four", "Five" }; | |
IEnumerable query = values | |
.Where(n => n.Contains("e")) | |
.OrderBy(n => n.Length); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class App | |
{ | |
public static void Main() | |
{ | |
// Create new stopwatch. | |
Stopwatch stopwatch = new Stopwatch(); | |
// Begin timing. | |
stopwatch.Start(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Diagnostics; | |
namespace Demo | |
{ | |
public class App | |
{ | |
public static void Main() | |
{ | |
// Only call in DEBUG build mode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class App | |
{ | |
[Init(InitPosition.Top)] | |
public static void Top() | |
{ | |
/* | |
A custom comment | |
*/ | |
Console.WriteLine("start"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class App | |
{ | |
[Init(InitPosition.Top)] | |
public static void Top() | |
{ | |
Console.WriteLine("Absolute Top"); | |
} | |
[Init(InitPosition.Bottom)] | |
public static void Bottom() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class App | |
{ | |
public static void Main() | |
{ | |
var flag = Convert.ToBoolean("true"); | |
int value = Convert.ToInt32("99"); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
decimal d = 1.0M; | |
// Test decimal. | |
if (d == 1.0M) | |
{ | |
Console.WriteLine(d); | |
} | |
decimal y = 0.5M; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <reference path="./bridge.d.ts" /> | |
declare module Demo { | |
export interface Program { | |
} | |
export interface ProgramFunc extends Function { | |
prototype: Program; | |
new (): Program; | |
Main(): void; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** @namespace Demo */ | |
/** | |
* This class performs an important function. | |
* | |
* @public | |
* @class Demo.App | |
*/ | |
Bridge.define("Demo.App", { | |
statics: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"generateDocumentation": "Full" | |
} |