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 void Hello() | |
{ | |
} |
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 FtpUpload | |
{ | |
public void Ftpfile() | |
{ | |
string ftphost = "ftp.mmfn.co.uk/"; | |
WebRequest request = WebRequest.Create("ftp://" + ftphost + "public_html/test.html"); | |
request.Method = WebRequestMethods.Ftp.UploadFile; | |
request.Credentials = new NetworkCredential("username", @"password"); |
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.Threading; | |
using Cms51.Search.Lucene; | |
using Lucene.Net.Analysis.Standard; | |
using Lucene.Net.Documents; | |
using Lucene.Net.Index; | |
using Lucene.Net.Store; | |
using North51.Commons.Testing; | |
using North51.Commons.Web; | |
using Rhino.Mocks; |
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.Threading; | |
using Cms51.Search.Lucene; | |
using Lucene.Net.Analysis.Standard; | |
using Lucene.Net.Documents; | |
using Lucene.Net.Index; | |
using Lucene.Net.Store; | |
using North51.Commons.Testing; | |
using North51.Commons.Web; | |
using Rhino.Mocks; |
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 void Update(string updatedName, IEnumerable<Guid> updatedCountries) | |
{ | |
var countriesQueue = new Queue<Guid>(this.countries); | |
var updatedCountryList = new List<Guid>(updatedCountries); | |
var countriesToRemove = new List<Guid>(); | |
var countriesStillInGroup = new List<Guid>(); | |
List<Guid> countriestoAdd; | |
while (countriesQueue.Count > 0) |
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.Collections.Generic; | |
using System.Linq; | |
namespace Other.Something.Core.Tasks | |
{ | |
public static class DiffGenerator | |
{ | |
public static Diff<T> Generate<T>(IEnumerable<T> left, IEnumerable<T> right) | |
{ | |
var added = right.Except(left); |
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
Imports System | |
Imports EnvDTE | |
Imports EnvDTE80 | |
Imports EnvDTE90 | |
Imports EnvDTE90a | |
Imports EnvDTE100 | |
Imports System.Diagnostics | |
Public Class Macros |
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.Collections.Generic; | |
using System.Threading.Tasks; | |
namespace ParallelLibrary | |
{ | |
public class FoolCollector | |
{ | |
public List<Fool> ChainOfFools { get; set; } | |
public void Collect() |
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.Diagnostics; | |
using System.IO; | |
using System.Threading.Tasks; | |
namespace ConsoleApplication | |
{ | |
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
function Person() { | |
var name = ''; | |
Object.defineProperty(this, 'name', { | |
get: function() { | |
return name; | |
}, | |
set: function(val) { | |
name = val; | |
} |
OlderNewer