Do functional generics exist and what is the correct name for them if they do?
- by voroninp
Consider the following generic class:
public class EntityChangeInfo<EntityType,TEntityKey>
{
ChangeTypeEnum ChangeType {get;}
TEntityKeyType EntityKey {get;}
}
Here EntityType unambiguously defines TEntityKeyType.
So it would be nice to have some kind of types' map:
public class EntityChangeInfo<EntityType,TEntityKey> with…