Skip to content

Instantly share code, notes, and snippets.

@sayurin
Forked from yuka1984/a.cs
Created April 11, 2019 23:23
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save sayurin/ad24c5cf61c8bdeb04581f0c3ca75656 to your computer and use it in GitHub Desktop.
わかんないやつ
public interface EntityBase {
string Name { get; }
}
public abstract class RepositoryBase<T> where T : EntityBase, new() {
private readonly string _name;
public RepositoryBase() {
_name = new T().Name;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment