Marking method parameters optional by using optionalAttribute in C sharp Arabic #69
Suggested Videos
Making method parameters optional by using OptionalAttribute
optional parameters
There are 4 ways that can be used to make method parameters optional Use parameter arrays –part 66
. Method overloading –part 67.
Specify parameter defaults –part 68.
Use optionalAttribute that is System.Runtime.InteropServices namespace.
OptionalAttribute is present in System.RunTime.InteropServices.
Tags:
C sharp