mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
C#: Add attibute test examples for properties and indexers.
This commit is contained in:
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user