Class AppStateReset
Provides support for reset of application state
public class AppStateReset
- Inheritance
-
objectAppStateReset
- Extension Methods
Constructors
AppStateReset()
public AppStateReset()
Methods
GetFieldState(Type, object)
Gets the current field state of the given type and object instance
public static List<AppStateReset.FieldState> GetFieldState(Type type, object instance)
Parameters
type
TypeType
instance
objectInstance
Returns
- List<AppStateReset.FieldState>
RestoreFieldState(object, IEnumerable<FieldState>)
Restores the field state for the given object
public static void RestoreFieldState(object instance, IEnumerable<AppStateReset.FieldState> fieldStates)
Parameters
instance
objectObject instance
fieldStates
IEnumerable<AppStateReset.FieldState>Field states returned earlier by GetFieldState(Type, object)