-
Notifications
You must be signed in to change notification settings - Fork 17
/
TestLibrary1.cs
44 lines (36 loc) · 1.01 KB
/
TestLibrary1.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace TestLibrary1
{
public class Test1
{
public static int Static5 = 5;
public int Instance5 = 5;
public static string TestMethod() {
return "TestMethod";
}
public static string TestGenericMethod<T>(T args)
{
return args.GetType().ToString();
}
public static string TestGenericMethod<T,V>(T args, V args2)
{
return args.GetType().ToString() + " " + args2.GetType().ToString();
}
public static void TestRef(ref int i) {
i = 10;
}
public static void TestOut(out int i) {
i = 10;
}
public class NestedClass {
public int Instance5 = 5;
public class TwiceNestedClass {
public int Instance7 = 7;
}
}
}
}