Realm Xamarin  v0.81.0
Realm for Xamarin
Public Member Functions | Public Attributes | List of all members
Realms.PreserveAttribute Class Reference

Prevents the Xamarin managed linker from linking the target. More...

Inherits Attribute.

Public Member Functions

 PreserveAttribute (bool allMembers, bool conditional)
 Initializes a new instance of the PreserveAttribute class. More...
 
 PreserveAttribute ()
 Initializes a new instance of the PreserveAttribute class. More...
 

Public Attributes

bool AllMembers
 When used on a class rather than a property, ensures that all members of this type are preserved. More...
 
bool Conditional
 Flags the method as a method to preserve during linking if the container class is pulled in. More...
 

Detailed Description

Prevents the Xamarin managed linker from linking the target.

Constructor & Destructor Documentation

§ PreserveAttribute() [1/2]

Realms.PreserveAttribute.PreserveAttribute ( bool  allMembers,
bool  conditional 
)

Initializes a new instance of the PreserveAttribute class.

Parameters
allMembersIf set to true all members will be preserved.
conditionalIf set to true, the method will only be preserved if the container class is preserved.

§ PreserveAttribute() [2/2]

Realms.PreserveAttribute.PreserveAttribute ( )

Initializes a new instance of the PreserveAttribute class.

Member Data Documentation

§ AllMembers

bool Realms.PreserveAttribute.AllMembers

When used on a class rather than a property, ensures that all members of this type are preserved.

§ Conditional

bool Realms.PreserveAttribute.Conditional

Flags the method as a method to preserve during linking if the container class is pulled in.