mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
23 lines
474 B
C#
23 lines
474 B
C#
using System;
|
|
|
|
[assembly: MyGenericAttribute<int>()]
|
|
[module: MyGeneric2<object, object>()]
|
|
|
|
public class MyGenericAttribute<T> : Attribute { }
|
|
public class MyGeneric2Attribute<T, U> : Attribute { }
|
|
|
|
public class TestGenericAttribute
|
|
{
|
|
|
|
[MyGenericAttribute<int>()]
|
|
public void M1() { }
|
|
|
|
[MyGeneric<string>()]
|
|
public void M2() { }
|
|
|
|
[MyGeneric2<int, string>()]
|
|
public void M3() { }
|
|
|
|
[return: MyGeneric<object>()]
|
|
public int M4() { return 0; }
|
|
} |