Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
参照によって拡張メソッドに配列を渡す方法。
これは私が試したものですが、機能していません。
public static void RemoveAtIndex(ref this int[] arr, int index)
拡張機能のターゲット オブジェクトを ref で送信することはできません。本当に必要ですか?配列は拡張メソッドで新しいものに置き換えられますか?