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

https://bugzilla.novell.com/show_bug.cgi?id=690660#c0


           Summary: Enhancement: Allow the PreserveAttribute to handle
                    class hierarchies
    Classification: Mono
           Product: MonoTouch
           Version: unspecified
          Platform: iPhone
        OS/Version: Apple iOS 4.3
            Status: NEW
          Severity: Minor
          Priority: P5 - None
         Component: Tools
        AssignedTo: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          Found By: Customer
           Blocker: ---


Description of Problem:

The linker in MonoTouch is very aggressive and since it only uses Static
Analysis to determine what to keep it causes problems with more dynamic
frameworks such as an IoC.

Currently it only supports a boolean AllMembers param.

Please support a param Scope as an enum 

public enum PreserveScope
{
  Class,
  Descendents,
  FullHierarchy
}

The three cases are:

1. Preserve just this class (same as [Preserve] does today)
2. Preserve this class and all its descendents.
3. Preserve this class and all its ancestors and descendents

So in the case I have a abstract class I can mark it with
[Preserve(Scope=PreserveScope.Descendents)] and not have to add a [Preserve] to
all descendents as I do today.

-- 
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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to