C# Class Caliburn.Micro.SurviveTombstone

Inheritance: System.Attribute, ITombstone
Afficher le fichier Open project: dbuksbaum/Learning-Caliburn.Micro

Méthodes publiques

Méthode Description
Resurrect ( IPhoneService phoneService, object owner, PropertyInfo property, object value, string rootKey ) : void

Resurrects the class/property.

Tombstone ( IPhoneService phoneService, object owner, PropertyInfo property, object value, string rootKey ) : void

Tombstones the class/property.

Méthodes protégées

Méthode Description
GetPersistableItems ( List items, string key ) : IEnumerable>

Returns the persistable items from the collection.

GetPersistableProperties ( object instance, string key ) : IEnumerable>

Gets all the persistable properties of the instance.

GetStateKey ( object instance, string rootKey ) : string

Determines the persistence key for the instance.

IsComplexType ( Type type ) : bool

Determines if the type is a complext type.

Method Details

GetPersistableItems() protected méthode

Returns the persistable items from the collection.
protected GetPersistableItems ( List items, string key ) : IEnumerable>
items List The items to inspect.
key string The root persistence key.
Résultat IEnumerable>

GetPersistableProperties() protected méthode

Gets all the persistable properties of the instance.
protected GetPersistableProperties ( object instance, string key ) : IEnumerable>
instance object The instance to inspect for persistable properties.
key string The root persistence key.
Résultat IEnumerable>

GetStateKey() protected méthode

Determines the persistence key for the instance.
protected GetStateKey ( object instance, string rootKey ) : string
instance object The instance to determine the key for.
rootKey string The root key.
Résultat string

IsComplexType() protected méthode

Determines if the type is a complext type.
protected IsComplexType ( Type type ) : bool
type System.Type
Résultat bool

Resurrect() public méthode

Resurrects the class/property.
public Resurrect ( IPhoneService phoneService, object owner, PropertyInfo property, object value, string rootKey ) : void
phoneService IPhoneService An instance of the phone service.
owner object The owner of the property or null if it is the root.
property System.Reflection.PropertyInfo The property to resurrect or null if the value is the root.
value object The value to resurrect.
rootKey string The key to use for resurrection.
Résultat void

Tombstone() public méthode

Tombstones the class/property.
public Tombstone ( IPhoneService phoneService, object owner, PropertyInfo property, object value, string rootKey ) : void
phoneService IPhoneService An instance of the phone service.
owner object The owner of the property or null if it is the root.
property System.Reflection.PropertyInfo The property to persist or null if the value is the root.
value object The value to persist.
rootKey string The key to use for persistance.
Résultat void