projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Bump NuGet.BuildTasks to get new updates and switch to `dev` branch (#5566)
[mono.git]
/
mcs
/
tests
/
gtest-exmethod-10.cs
1
2
3
using System;
4
5
static class AExtensions
6
{
7
public static int Round (this double d)
8
{
9
return (int) Math.Round (d);
10
}
11
}
12
13
static class BExtensions
14
{
15
public static T GetBy<T> (this T [] a, double p)
16
{
17
return a [p.Round ()];
18
}
19
}
20
21
public class C
22
{
23
public static void Main ()
24
{
25
}
26
}