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.Drawing; | |
using System.Linq; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using Microsoft.WindowsAzure.Storage; | |
using Microsoft.WindowsAzure.Storage.Table; | |
using Newtonsoft.Json; |
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.Drawing; | |
using System.Linq; | |
using System.Text; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using Microsoft.Azure.EventHubs; | |
using Newtonsoft.Json; |
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
var hashSet = new HashSet<string>(StringComparer.OrdinalIgnoreCase); | |
hashSet.Add("abc"); | |
hashSet.Add("Abc"); | |
hashSet.Add("abc"); | |
hashSet.Remove("ABC"); | |
hashSet.Add("abc"); | |
Console.WriteLine(hashSet.Count); |
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.Linq; | |
using Microsoft.CodeAnalysis; | |
namespace SourceCodeSandbox | |
{ | |
public static class SanboxExtensions | |
{ | |
private static readonly HashSet<Type> AllowedDefaultTypes = new HashSet<Type> |
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.Globalization; | |
using System.Reflection; | |
using Microsoft.SqlServer.Management.SqlParser.Metadata; | |
public class CollationComparer : IEqualityComparer<string>, IComparer<string> | |
{ | |
private readonly CollationInfo _collationInfo; | |
private readonly CompareOptions _compareOptions; |
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.Globalization; | |
using System.Linq; | |
using System.IO; | |
using System.Text; | |
using System.Diagnostics; | |
using System.Threading.Tasks; | |
namespace ConsoleApplication1 |
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.Threading.Tasks; | |
using System.Web.Http; | |
namespace MvcApplication1.Controllers | |
{ | |
public class WaitController : ApiController | |
{ |
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.Linq; | |
using System.Web.Http; | |
using System.Web.Http.OData.Query; | |
namespace ProjectionWebApi.Controllers | |
{ | |
[Route("api/projectioncheck")] | |
public class ProjectionCheckController : ApiController | |
{ | |
private static readonly IQueryable<User> UserSet = new[] |
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
//Shows different alerts (can be used in popup or simple container mode) | |
(function($) { | |
var Widget = kendo.ui.Widget, | |
POPUPCONTAINER = "containerBox-popup", | |
TEXTCONTAINER = "notifier-text", | |
TEXTCONTAINERSELECTOR = "." + TEXTCONTAINER, | |
NOTIFYWRAPPERID = "notify-wrapper", | |
alertClasses = { | |
success: "alert-success", | |
inProgress: "alert-info", |
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 TakeFromGroup | |
{ | |
public static class EnumerableExtensions | |
{ | |
public static IEnumerable<T> TakeFromGrouped<T, TGroup>(this IEnumerable<T> enumerable, | |
Func<T, TGroup> groupSelector, | |
Func<T, T, T> takeFunc) |