Beispiel #1
0
 public MagicList(object opaqueCollection)
 {
     this.realList   = (IList <V>)opaqueCollection;
     this.typeCaster = null;
 }
Beispiel #2
0
 public MagicCollection(ICollection <TV> realCollection, GenericTypeCaster <TV> typeCaster)
 {
     _realCollection = realCollection;
     _typeCaster     = typeCaster;
 }
Beispiel #3
0
 public MagicDictionary(Object opaqueDictionary)
 {
     _realDictionary = (IDictionary <K1, V1>)opaqueDictionary;
     _typeKeyCaster  = null;
 }
Beispiel #4
0
 public MagicCollection(object opaqueCollection)
 {
     _realCollection = (ICollection <TV>)opaqueCollection;
     _typeCaster     = obj => (TV)obj;
 }
Beispiel #5
0
 public MagicCollection(object opaqueCollection, GenericTypeCaster <TV> typeCaster)
 {
     _realCollection = (ICollection <TV>)opaqueCollection;
     _typeCaster     = typeCaster;
 }
Beispiel #6
0
 public MagicDictionary(IDictionary <TK1, TV1> realDictionary, GenericTypeCaster <TK1> typeKeyCaster)
 {
     _realDictionary = realDictionary;
     _typeKeyCaster  = typeKeyCaster;
 }
Beispiel #7
0
 public MagicCollection(object opaqueCollection)
 {
     _realCollection = (ICollection <V>)opaqueCollection;
     _typeCaster     = null;
 }
Beispiel #8
0
 public MagicDictionary(Object opaqueDictionary, GenericTypeCaster <TK1> typeKeyCaster)
 {
     _realDictionary = (IDictionary <TK1, TV1>)opaqueDictionary;
     _typeKeyCaster  = typeKeyCaster;
 }
 public GenericPersister(BaseRepository <T> repo, Validator <T> validator, GenericTypeCaster <T> caster) :
     this(repo, new Validator <T>[] { validator }, caster)
 {
 }
 public GenericPersister(BaseRepository <T> repo, Validator <T>[] validators, GenericTypeCaster <T> caster)
 {
     this.repository = repo;
     this.validators = validators;
     this.caster     = caster;
 }
Beispiel #11
0
 public MagicList(IList <TV> realCollection, GenericTypeCaster <TV> typeCaster)
 {
     _realList = realCollection;
 }
Beispiel #12
0
 public MagicList(object opaqueCollection, GenericTypeCaster <TV> typeCaster)
 {
     _realList   = (IList <TV>)opaqueCollection;
     _typeCaster = null;
 }