LoginSignup
0
1

More than 5 years have passed since last update.

省略可能な引数

Posted at

C# 4.0から省略可能な引数が利用可能。
クラスモジュールの関数に省略可能な引数を追加するという修正をした場合、呼び出し元のリビルドが必要。
クラスモジュールのみ入れ替えると、「引数が○○個のメソッドがありません」の例外が発生する。
他の呼び出し元に影響なく修正できると思いがちなので注意。

「A.exeとB.exeで呼び出している関数に省略可能な引数を追加し、クラスモジュールとAのモジュールを差し替え」
上記の場合、B.exeを実行すると例外が発生する。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1