// EF (Model) project
class EntityBase { } // base class for all types
class Person : EntityBase // specific implementation for type Person
// ViewModel project
class EditableViewModel<T> where T : EntityBase // base class for all viewmodel types
class PersonViewModel : EditableViewModel<Person>
class CollectionViewModel<T> where T : EditableViewModel<EntityBase> // base class that handles CRUD operation on EditableViewModel<T> collections
// everything up to this point work. I am unable to create specific instance of CollectionViewModel<>
class AllPersonsViewModel : CollectionViewModel<PersonViewModel>
어떻게 이것을 수행 할 수 있습니까?일반 유형 인수로 일반 유형
질문은 마지막 주석에 있습니다. – usr
어쩌면 그는 그 코멘트를 읽을 시간이 없었을 지 모르지만 downvote 할 시간이 있었다. 그리고 그는 자신의 코멘트를 삭제하고 "ïnappropriate"을 찾아 내기로 결정했습니다. :) – Goran