Skip to content

Instantly share code, notes, and snippets.

@clementi
Created September 3, 2010 20:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clementi/564492 to your computer and use it in GitHub Desktop.
Save clementi/564492 to your computer and use it in GitHub Desktop.
namespace Ncoa.Matching.UI
{
using System.Collections.Generic;
using System.Linq;
using StorageAccess;
public abstract class FakeQueryStorage<T> : IQueryStorage
{
protected IEnumerable<T> items;
public IQueryable<TItem> Items<TItem>() where TItem : class
{
return items.Cast<TItem>().AsQueryable();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment