mirror of https://github.com/icsharpcode/ILSpy.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
311 B
19 lines
311 B
using System.Runtime.InteropServices; |
|
|
|
public class ParameterizedPropertySetterCall |
|
{ |
|
// C# has no syntax for parameterized property 'P'. |
|
public int get_P(int i) |
|
{ |
|
return i; |
|
} |
|
|
|
public void set_P([Optional][DefaultParameterValue(0)] int i, int value) |
|
{ |
|
} |
|
|
|
public void Use() |
|
{ |
|
this.set_P(0, 5); |
|
} |
|
}
|
|
|