File tree Expand file tree Collapse file tree
LinqGen.Unity/Packages/com.cathei.linqgen Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -60,14 +60,10 @@ public int Count
6060 get => _count ;
6161 }
6262
63- public T [ ] Array => _array ;
64-
65- public T this [ int index ]
63+ public ref T this [ int index ]
6664 {
6765 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
68- get => _array [ index ] ;
69- [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
70- set => _array [ index ] = value ;
66+ get => ref _array [ index ] ;
7167 }
7268
7369 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
Original file line number Diff line number Diff line change @@ -57,12 +57,10 @@ public int Count
5757
5858 public DynamicArrayNative < T > Array => _array ;
5959
60- public T this [ int index ]
60+ public ref T this [ int index ]
6161 {
6262 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
63- get => _array [ index ] ;
64- [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
65- set => _array [ index ] = value ;
63+ get => ref _array [ index ] ;
6664 }
6765
6866 [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
Original file line number Diff line number Diff line change 44 "author" : {
55 "name" : " Maxwell Keonwoo Kang"
66 },
7- "version" : " 0.0.3 -preview" ,
7+ "version" : " 0.0.4 -preview" ,
88 "unity" : " 2020.1" ,
99 "description" : " Fast Linq-to-object source generator" ,
1010 "license" : " MIT" ,
You can’t perform that action at this time.
0 commit comments