Example #1
0
 public BaseDataGridColumn()
 {
     // TODO: move this to cached FunctionCompiler so it doesn't get compiled every time
     valueTypeGetter    = new Lazy <Func <Type> >(() => FunctionCompiler.CreateValueTypeGetter <TItem>(Field));
     defaultValueByType = new Lazy <Func <object> >(() => FunctionCompiler.CreateDefaultValueByType <TItem>(Field));
     valueGetter        = new Lazy <Func <TItem, object> >(() => FunctionCompiler.CreateValueGetter <TItem>(Field));
     valueSetter        = new Lazy <Action <TItem, object> >(() => FunctionCompiler.CreateValueSetter <TItem>(Field));
 }