Esempio n. 1
0
 public override bool IsMatch(ResolutionContext context)
 {
     // destination type must be IEnumerable interface or a class implementing at least IList
     return(PrimitiveExtensions.IsEnumerableType(context.SourceType) &&
            (PrimitiveExtensions.IsListType(context.DestinationType) ||
             DestinationIListTypedAsIEnumerable(context)));
 }