Пример #1
0
 public static BinderState FromScan(IPropertyScanner scanner, IEnumerable <object> objects)
 {
     return(new BinderState(
                objects
                .SelectMany(o => scanner.Scan(o).Select(p => new CandidateProperty(o, p)))
                .OrderBy(be => be.RelativePath)
                ));
 }
Пример #2
0
 public TypeExtensionsScanner(IPropertyScanner extensionsScanner)
 {
     _adapterFactory    = new TypeAdapterFactory <ITypeExtension>();
     _extensionsScanner = extensionsScanner;
 }