How to pass an array to a extension method by reference.
this is what i have tried but not working.
public static void RemoveAtIndex(ref this int[] arr, int index)
You can't send extension's target object by ref. Do you relly need it? Is array replaced by the new one by the extension method?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With