projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Allow passing null to JsonArray.Add()
[mono.git]
/
mcs
/
tests
/
gtest-optional-19.cs
1
using System;
2
3
public class MainClass
4
{
5
public static void Main ()
6
{
7
Wrap (r => r.Find ());
8
Wrap<IPackage> (r => r.Find ());
9
}
10
11
static void Wrap<T> (Func<IPackageRepository, T> factory, T defaultValue = null) where T : class
12
{
13
}
14
}
15
16
public interface IPackage
17
{
18
}
19
20
public interface IPackageRepository
21
{
22
IPackage Find ();
23
}