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.Collections.Generic; | |
namespace Monster | |
{ | |
public class MonsterClass | |
{ | |
public void DoTask() | |
{ | |
MySqlConnection oSqlConn = new MySqlConnection(); |
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
void c(int[]b,out int t){int n,v,i=t=0,X=10;for(;i<19;i+=2){n=b[i]+b[i+1];v=b[i+2];t+=(n<X)?n:X+v;if(b[i]>9)t+=b[i+(i>16|v<X?3:4)];}} |
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.Collections.Generic; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Linq; | |
using System.Windows.Forms; | |
namespace DoubleBufferExample | |
{ | |
public partial class TestForm : Form |
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; | |
namespace Demo | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var myClass = new MyClass(); |
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.IO; | |
using System.Runtime.CompilerServices; | |
class CallerInfoDemo | |
{ | |
static void Main(string[] args) | |
{ | |
LogMe(); | |
Method1(); |
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 Microsoft.AspNet.SignalR.Hubs; | |
using System.Timers; | |
namespace SignalRDemo | |
{ | |
public class DemoHub : Hub | |
{ | |
private readonly DemoTimer _demoTimer; | |
public DemoHub() |
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; | |
using System.Xml; | |
namespace WeakReferenceDemo | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
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="scripts/jquery.d.ts" /> | |
module Trainline { | |
export var pointState = { | |
Available: "AVAILABLE", | |
Crossed: "CROSSED", | |
Unavailable: "UNAVAILABLE" | |
} | |
export var pointSide = { |
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 GestureEnabledDisplay_T35 : Gadgeteer.Modules.GHIElectronics.Display_T35 | |
{ | |
private long _touchdownTicks; | |
private const long NanosecondsInMilliseconds = 10000; | |
public delegate void LongTouchEventHandler(object sender, EventArgs args); | |
public event LongTouchEventHandler LongTouch; | |
/// <summary> | |
/// The number of milliseconds a touch needs before it raises a longtouch event |
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
foreach (var s in Enumerable.Range(1, 11).Zip("Davis, Clyne, Fonte, Hooiveld, Shaw, Davis, Schneiderlin, Cork, Lallana, Rodriguez, Lambert".Split(new[] { ", " }, StringSplitOptions.None), (num, name) => num + ". " + name)) | |
{ | |
Console.WriteLine(s); | |
} |
OlderNewer