File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ public Processor(Transformer<T> transformer, string[] names = null)
5353 var count = _names . Length ;
5454 for ( var i = 0 ; i < count ; i ++ )
5555 {
56- var p = _properties [ i ] ;
56+ var p = _propertySetters [ i ] ;
5757 if ( p != null )
5858 {
5959 var name = _names [ i ] ;
@@ -72,15 +72,15 @@ public Processor(Transformer<T> transformer, string[] names = null)
7272 public readonly Transformer < T > Transformer ;
7373
7474 string [ ] _names ;
75- Action < T , object > [ ] _properties ;
75+ Action < T , object > [ ] _propertySetters ;
7676
7777 public readonly Func < object [ ] , T > Transform ; // Using a Func<object[],T> for better type inferrence.
7878
7979 public void SetNames ( string [ ] names )
8080 {
8181 var map = Transformer . ColumnToPropertyMap ;
8282 _names = names ;
83- _properties = names
83+ _propertySetters = names
8484 . Select ( n => map . TryGetValue ( n . ToLowerInvariant ( ) , out PropertyInfo p ) ? p . BuildUntypedSetter < T > ( ) : null )
8585 . ToArray ( ) ;
8686 }
You can’t perform that action at this time.
0 commit comments