C# Класс Caliburn.Micro.SurviveTombstone

Наследование: System.Attribute, ITombstone
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
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.

Описание методов

GetPersistableItems() защищенный Метод

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.
Результат IEnumerable>

GetPersistableProperties() защищенный Метод

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.
Результат IEnumerable>

GetStateKey() защищенный Метод

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.
Результат string

IsComplexType() защищенный Метод

Determines if the type is a complext type.
protected IsComplexType ( Type type ) : bool
type System.Type
Результат bool

Resurrect() публичный Метод

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.
Результат void

Tombstone() публичный Метод

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.
Результат void