Skip to content

Instantly share code, notes, and snippets.

View Ivony's full-sized avatar
🖥️
working

Ivony Ivony

🖥️
working
View GitHub Profile
@Ivony
Ivony / Program.cs
Created November 19, 2018 12:05
C#_Java_performance_test
class Program
{
public interface I
{
void Do();
}
@Ivony
Ivony / void_support.cs
Last active August 29, 2015 13:58
void support
//1、允许泛型参数类型为void,但其前提是该参数必须被标记为out
public Task<out T>
{
//...
}
Task<void> task;//合法
IEnumerable<void> data;//合法
namespace Test
{
public class Program
{
public static void Main()
{
var list = new MyClass<string>();