[Mono-bugs] [Bug 469693] New: New rule: Avoid declaring custom delegates

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Jan 27 04:50:20 EST 2009


https://bugzilla.novell.com/show_bug.cgi?id=469693


           Summary: New rule: Avoid declaring custom delegates
    Classification: Mono
           Product: Mono: Tools
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Gendarme
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: msafar at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


NET 2.0/3.5 comes with predefined sets of generic delegates

Action, Action<T>,...
Func<T>,....

Users should use these instead of defining their own delegates. I believe it
has performance benefits too.

Few exceptions:
- when ref, out, or params is used
- will have to ignore this rule for public delegates in BCL

-- 
Configure bugmail: https://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