Skip to content

Instantly share code, notes, and snippets.

View lukasz-pyrzyk's full-sized avatar
🏠
Working from home

Łukasz Pyrzyk lukasz-pyrzyk

🏠
Working from home
View GitHub Profile
@lukasz-pyrzyk
lukasz-pyrzyk / PriorityQueue.cs
Last active December 20, 2016 21:29
A Priority queue of T based on IComparable
using System;
using System.Collections;
using System.Collections.Generic;
namespace ProjectForTests
{
public class PriorityQueue<T> : IEnumerable<T> where T : IComparable<T>
{
private readonly LinkedList<T> _items = new LinkedList<T>();
using System;
using System.Net.Http;
using System.Threading.Tasks;
using System.Web.Mvc;
namespace TestMvc.Controllers
{
public class HomeController : Controller
{
public ActionResult Index()
[Fact]
public void EntityWithArrayCanBeFlattened()
{
var root = new Parent
{
Childrens = new[] { new Children { Name = "Łukasz" } }
};
var flattened = TableEntity.Flatten(root, new OperationContext());
}