C# Class Caliburn.Micro.SurviveTombstone

Inheritance: System.Attribute, ITombstone
Show file Open project: dbuksbaum/Learning-Caliburn.Micro

Public Methods

Method 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.

Protected Methods

Method 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 method

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.
return IEnumerable>

GetPersistableProperties() protected method

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.
return IEnumerable>

GetStateKey() protected method

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.
return string

IsComplexType() protected method

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

Resurrect() public method

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.
return void

Tombstone() public method

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.
return void