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 LearnEvents | |
{ | |
// Defining delegate type (similar to System.EventHandler) | |
delegate void SomeHandler(object sender, EventArgs e); | |
class Person | |
{ | |
// Field-like event declared using keyword '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
using System; | |
using Microsoft.VisualStudio.TestTools.WebTesting; | |
namespace YourAppLoadTesting | |
{ | |
public class AddCorrelationIdToReportPutRequest: WebTestPlugin | |
{ | |
public string ApplyToRequestsThatContain { get; set; } | |
public string BodyStringParam { get; set; } |
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.Configuration; | |
using System.Data.SqlClient; | |
using System.Linq; | |
using System.Text; | |
using NUnit.Framework; | |
namespace YourSystem.Tests |
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 EdgeJs; | |
namespace LearnEdgeJs | |
{ | |
class Program | |
{ | |
public void Start() | |
{ | |
var func = Edge.Func(@"return require('../edgeEntryPoint.js')"); |
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
didSaveRecord: function (record, data) { | |
if (data) { | |
this.didSaveRecordForHasManyItems(this, record.constructor, data, record); | |
} | |
this._super(record, data); | |
}, | |
// Fixes introdution in ember-data.1.0.0.beta4 (see method "addUnsavedRecords" in Store) | |
// assume that "any unsaved records that are | |
// in a hasMany they won't be in the payload" |
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
App.InputChosenComponent = Ember.Component.extend({ | |
init: function () { | |
this._super(); | |
}, | |
// settings | |
labelClass: 'col-sm-2', | |
label: 'Date', | |
inputContainerClass: 'col-sm-2', | |
inputClass: '', |
NewerOlder