2010-06-21 Atsushi Enomoto <atsushi@ximian.com>
[mcs.git] / tests / gtest-exmethod-10.cs
blobbe075dd34297c320a17841969e637c063bf23d3f
3 using System;
5 static class AExtensions
7 public static int Round (this double d)
9 return (int) Math.Round (d);
13 static class BExtensions
15 public static T GetBy<T> (this T [] a, double p)
17 return a [p.Round ()];
21 public class C
23 public static void Main ()