Skip to content

Instantly share code, notes, and snippets.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
namespace MarketSort.Solutions
{
class SorterF : ISorter
{
public IEnumerable<string> Sort(IEnumerable<string> values)
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
namespace MarketSort.Solutions
{
class SorterE : ISorter
{
public IEnumerable<string> Sort(IEnumerable<string> values)
{
using System;
using System.Collections.Generic;
using System.Linq;
namespace MarketSort.Solutions
{
class SorterD : ISorter
{
public IEnumerable<string> Sort(IEnumerable<string> values)
{
using System.Collections.Generic;
namespace MarketSort
{
interface ISorter
{
IEnumerable<string> Sort(IEnumerable<string> values);
}
}
using System;
using System.Collections.Generic;
using System.Linq;
namespace MarketSort.Solutions
{
class SorterC : ISorter
{
public IEnumerable<string> Sort(IEnumerable<string> values)
{
using System.Collections.Generic;
using System.Linq;
namespace MarketSort.Solutions
{
class SorterB : ISorter
{
public IEnumerable<string> Sort(IEnumerable<string> values)
{
var ordered = new List<string>();
using System.Collections.Generic;
using System.Linq;
namespace MarketSort.Solutions
{
class SorterA : ISorter
{
public IEnumerable<string> Sort(IEnumerable<string> values)
{
return values
@creyke
creyke / OrleansEventHubCustomData.cs
Created September 21, 2020 14:19
Orleans Event Hub Custom Data
public class CustomEventHubDataAdapter : EventHubDataAdapter
{
private readonly SerializationManager serializationManager;
public CustomEventHubDataAdapter(SerializationManager serializationManager)
: base(serializationManager)
{
this.serializationManager = serializationManager;
}
Restoring NuGet packages...
To prevent NuGet from restoring packages during build, open the Visual Studio Options dialog, click on the Package Manager node and uncheck 'Allow NuGet to download missing packages during build.'
1>------ Build started: Project: OrleansDashboard.Core, Configuration: Debug Any CPU ------
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1988,5): warning MSB3277: Found conflicts between different versions of the same dependent assembly that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed.
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(1988,5): warning MSB3277: Found conflicts between different versions of the same dependent assembly that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed.
1>OrleansDashbo
@creyke
creyke / PackedGuidExample.cs
Created October 18, 2017 22:49
Example packed Guid
public class TenantAndUserKey : PackedGuidKey
{
public TenantAndUserKey()
{
}
public TenantAndUserKey(Guid guid) : base(guid)
{
}