[Mono-bugs] [Bug 512330] New: ParameterInfo::Value does not work for decimals

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Jun 11 13:00:54 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=512330


           Summary: ParameterInfo::Value does not work for decimals
    Classification: Mono
           Product: Mono: Runtime
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: misc
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: msafar at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


1. Compile with: -langversion:future



using System;

using System.Runtime.InteropServices;

using System.Reflection;

using System.Runtime.CompilerServices;



public class C

{

    public static void TestC (decimal u = decimal.MaxValue)

    {

    }



    public static void Main ()

    {

        var info = typeof (C).GetMethod ("TestC").GetParameters ();

        Console.WriteLine (info[0].DefaultValue);

    }

}



2. mono test.exe

Actual:

System.Reflection.Missing

Expected:

79228162514264337593543950335

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list