Skip to content

Instantly share code, notes, and snippets.

View martinskuta's full-sized avatar

Martin Škuta martinskuta

View GitHub Profile
@martinskuta
martinskuta / IListExtensions.cs
Last active December 2, 2015 15:21
IList extensions: BinarySearch and GetInsertIndex
// ReSharper disable once CheckNamespace
namespace System.Collections.Generic
{
/// <summary>
/// Helper extension methods for collections implementing <see cref="IList{T}" /> interface.
/// </summary>
public static class IListExtensions
{
/// <summary>
/// Adds item to sorted list. The method assumes the list is sorted according to default or passed in comparer.
@martinskuta
martinskuta / AsynCommand.cs
Created November 18, 2015 00:16
Implementation of AsyncCommand for WPF
#region Usings
using System;
using System.Reflection;
using System.Threading.Tasks;
using System.Windows.Input;
#endregion
namespace AsyncCommandGist