File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,12 @@ async Task InternalInitializeLazyPropertiesAsync()
8787 int [ ] lazyIndexes ;
8888 if ( allLazyProperties )
8989 {
90- lazyIndexes = indexes = lazyPropertyNumbers ;
90+ indexes = lazyPropertyNumbers ;
91+ lazyIndexes = new int [ lazyPropertyNumbers . Length ] ;
92+ for ( var i = 0 ; i < lazyIndexes . Length ; i ++ )
93+ {
94+ lazyIndexes [ i ] = i ;
95+ }
9196 }
9297 else
9398 {
Original file line number Diff line number Diff line change @@ -1425,7 +1425,7 @@ public void InitializeLazyProperties(
14251425 var metadata = InstrumentationMetadata . LazyPropertiesMetadata ;
14261426 indexes = new int [ uninitializedLazyProperties . Length ] ;
14271427 lazyIndexes = new int [ uninitializedLazyProperties . Length ] ;
1428- for ( var i = 0 ; i < uninitializedLazyProperties . Length ; i ++ )
1428+ for ( var i = 0 ; i < uninitializedLazyProperties . Length ; i ++ )
14291429 {
14301430 var descriptor = metadata . GetLazyPropertyDescriptor ( uninitializedLazyProperties [ i ] ) ;
14311431 indexes [ i ] = descriptor . PropertyIndex ;
You can’t perform that action at this time.
0 commit comments