C#: Add attibute test examples for properties and indexers.

This commit is contained in:
Michael Nebel
2024-09-16 10:50:51 +02:00
parent 076dd07cdc
commit cc0d99a141

View File

@@ -108,6 +108,7 @@ public class MyAttributeUsage
[return: My3Attribute(6)]
public static int operator +(MyAttributeUsage a, MyAttributeUsage b) => 0;
[My3Attribute(15)]
public int this[int x]
{
[My3Attribute(7)]
@@ -120,6 +121,7 @@ public class MyAttributeUsage
}
private int p;
[My3Attribute(16)]
public int Prop1
{
[method: My3Attribute(11)]