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.
21 lines
361 B
21 lines
361 B
public class ParameterizedPropertyInitializer |
|
{ |
|
// C# has no syntax for parameterized property 'Foo'. |
|
public int get_Foo(int x) |
|
{ |
|
return x; |
|
} |
|
|
|
public void set_Foo(int x, int value) |
|
{ |
|
} |
|
|
|
public static void Consume(ParameterizedPropertyInitializer p) |
|
{ |
|
} |
|
|
|
public static void Use() |
|
{ |
|
Consume(new ParameterizedPropertyInitializer { [7] = 5 }); |
|
} |
|
}
|
|
|