mirror of https://github.com/icsharpcode/ILSpy.git
Browse Source
CopyPropagation will replace `ref StructWithStringField reference = ref array[0];` with: ``` var x = array; var y = 0; ``` and then every use of `reference` is replaced with `x[y]`. This lets us avoid rough locals while preserving the semantics in every case except that we re-order when a NullReferenceException/IndexOutOfRangeException occurs.null-coalescing-assignment
1 changed files with 5 additions and 4 deletions
Loading…
Reference in new issue