File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
net/DevExtreme.AspNet.Data/Types Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,10 @@ static DynamicClassBridge() {
2323 PROP_TYPE = assembly . GetType ( "System.Linq.Dynamic.Core.DynamicProperty" ) ;
2424#pragma warning restore DX0010 , DX0004 // known assembly and types
2525 CREATE_TYPE_METHOD = FACTORY_TYPE . GetMethod ( "CreateType" ) ;
26- INDEXER_METHOD = CLASS_TYPE . GetMethod ( "get_Item" ) ;
26+
27+ var indexerNameField = CLASS_TYPE . GetField ( "IndexerName" , BindingFlags . NonPublic | BindingFlags . Static ) ;
28+ var indexerName = indexerNameField ? . GetValue ( null ) as string ?? "Item" ;
29+ INDEXER_METHOD = CLASS_TYPE . GetMethod ( "get_" + indexerName ) ;
2730 } catch ( FileNotFoundException x ) {
2831 throw new Exception ( "Please install 'System.Linq.Dynamic.Core' package" , x ) ;
2932 }
You can’t perform that action at this time.
0 commit comments