repo.or.cz
/
mcs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2007-05-25 Jonathan Chambers <joncham@gmail.com>
[mcs.git]
/
tests
/
gtest-208.cs
blob
e827dc8efd78f47ece58023da019c1b86d89d976
1
public class
SomeClass
{
2
}
3
4
public class
Foo
<
T
>
where T
:
class
{
5
public
T
Do
(
object
o
)
{ return o as T; }
6
}
7
8
class
Driver
{
9
static void
Main
()
10
{
11
Foo
<
SomeClass
>
f
=
new
Foo
<
SomeClass
> ();
12
f
.
Do
(
"something"
);
13
}
14
}
15
16