Created
February 23, 2013 19:01
-
-
Save mathieubrun/5020888 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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