Skip to content

Instantly share code, notes, and snippets.

@mathieubrun
Created February 23, 2013 19:01
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 mathieubrun/5020888 to your computer and use it in GitHub Desktop.
Save mathieubrun/5020888 to your computer and use it in GitHub Desktop.
public class GenericService<T> : IGenericService<T> where T : EntityBase, new()
{
public T GetEntity(string text)
{
var t = new T() { Text = text };
t.Initialize();
return t;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment