Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Prev Previous commit
Next Next commit
Use some sugar
  • Loading branch information
AaronRobinsonMSFT authored and github-actions committed Sep 22, 2022
commit cab29e52a43ae3c7afa4a02255c479f5f3fae01f
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public void AddDelegate(Delegate d, bool wrapArgs = false)
newWrappers = new DelegateWrapper[wrappers.Length + 1];
wrappers.CopyTo(newWrappers, 0);

newWrappers[newWrappers.Length - 1] = new DelegateWrapper(d, wrapArgs);
newWrappers[^1] = new DelegateWrapper(d, wrapArgs);
} while (!PublishNewWrappers(newWrappers, wrappers));
}

Expand Down