This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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() | |
| { | |
| } |
NewerOlder