mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
17 lines
921 B
Plaintext
17 lines
921 B
Plaintext
public class ParametersDll
|
|
{
|
|
public void M1(int a, object b, string c) => throw null;
|
|
public void M2(int a, object b = null, string c = "default string") => throw null;
|
|
public void M3(int a = 1, object b = null, string c = "null") => throw null;
|
|
public void M4(int a = default, object b = default) => throw null;
|
|
public void M5(int a = new int(), object b = default) => throw null;
|
|
public void M6(MyStruct s1, MyStruct s2 = default(MyStruct), MyStruct s3 = new MyStruct()) => throw null;
|
|
public void M7(MyEnum e1, MyEnum e2 = default(MyEnum), MyEnum e3 = new MyEnum(), MyEnum e4 = MyEnum.A, MyEnum e5 = (MyEnum)5) => throw null;
|
|
|
|
public void M8<T>(T t = default) => throw null;
|
|
public void M9<T>(T t = default) where T : struct => throw null;
|
|
public void M10<T>(T t = default) where T : class => throw null;
|
|
|
|
public struct MyStruct { }
|
|
public enum MyEnum { A = 1, B = 2 }
|
|
} |