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

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Aug 3 20:04:11 EDT 2009


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

User mhutchinson at novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=525342#c2


Michael Hutchinson <mhutchinson at novell.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |mhutchinson at novell.com
         Resolution|FIXED                       |




--- Comment #2 from Michael Hutchinson <mhutchinson at novell.com>  2009-08-03 18:04:10 MDT ---
This is still broken if the declaration is after the implementation, i.e.

using System;

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

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

    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