2 using System.Reflection;
4 [AttributeUsage(System.AttributeTargets.All)]
20 if ((int) (0.7f * 100.0f) != 69)
23 if ((double) (0.7f * 100.0f) != 69.9999988079071)
26 if (!Foo (0.7f * 100.0f))
29 A attr = (A)MethodBase.GetCurrentMethod ().GetCustomAttributes (false) [0];
30 if (attr.D != 69.9999988079071)
33 Console.WriteLine ("ok");
37 static bool Foo (double d)
39 return d == 69.9999988079071;