[Mono-bugs] [Bug 525342] New: Attributes on partial method declarations are ignored

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Jul 26 21:40:41 EDT 2009


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


           Summary: Attributes on partial method declarations are ignored
    Classification: Mono
           Product: Mono: Compilers
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: C#
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: miguel at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


The following program should print 1 instead of 0:

using System;

namespace ConsoleApplication1
{
    public partial class X
    {
        [CLSCompliant (true)]
         partial void Foo ();
    }

    public partial class X
    {
         partial void Foo ()
        {
            int i;
        }
    }

    class Program
    {
        static void Main (string[] args)
        {
            var x = typeof (X).GetMethod ("Foo",
System.Reflection.BindingFlags.NonPublic |
System.Reflection.BindingFlags.Instance).GetCustomAttributes (true);
        Console.WriteLine (x.Length);
        }
    }
}

-- 
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