repo.or.cz
/
mono-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[configure] Add new target.
[mono-project.git]
/
mcs
/
tests
/
gtest-optional-19.cs
blob
17049844ff1c2ba941ee8f6427a1fbc5527218b2
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
}