This file contains hidden or 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
// field _LookAhead | |
Node Operand() | |
{ | |
Node ret; | |
if(matches(TokenId.Identifier)) | |
{ | |
ret = new Node() | |
{ | |
Value = _LookAhead.TokenText, |
This file contains hidden or 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 interface ICommandRepository<T> | |
{ | |
void SaveOrUpdate<U>(U item) where U: T; | |
void Delete<U>(U item) where U: T; | |
} | |
/* then, library code asks for ICommandRepository<Core.Customer> and so do clients. | |
However, when clients call SaveOrUpdate, they'll be passing a Extended.Customer, | |
but when library code calls it, they'll be passing what they think is a Core.Customer | |
(though it will still be a Extended.Customer, of course). |