Skip to content

Instantly share code, notes, and snippets.

View geoffreymcgill's full-sized avatar

Geoffrey McGill geoffreymcgill

View GitHub Profile
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);
}
public class App
{
public static void Main()
{
// Create new stopwatch.
Stopwatch stopwatch = new Stopwatch();
// Begin timing.
stopwatch.Start();
using System;
using System.Diagnostics;
namespace Demo
{
public class App
{
public static void Main()
{
// Only call in DEBUG build mode
public class App
{
[Init(InitPosition.Top)]
public static void Top()
{
/*
A custom comment
*/
Console.WriteLine("start");
}
public class App
{
[Init(InitPosition.Top)]
public static void Top()
{
Console.WriteLine("Absolute Top");
}
[Init(InitPosition.Bottom)]
public static void Bottom()
public class App
{
public static void Main()
{
var flag = Convert.ToBoolean("true");
int value = Convert.ToInt32("99");
}
}
decimal d = 1.0M;
// Test decimal.
if (d == 1.0M)
{
Console.WriteLine(d);
}
decimal y = 0.5M;
/// <reference path="./bridge.d.ts" />
declare module Demo {
export interface Program {
}
export interface ProgramFunc extends Function {
prototype: Program;
new (): Program;
Main(): void;
}
/** @namespace Demo */
/**
* This class performs an important function.
*
* @public
* @class Demo.App
*/
Bridge.define("Demo.App", {
statics: {
{
"generateDocumentation": "Full"
}