Enhanced C#
Language of your choice: library documentation
Public fields | Properties | Public Member Functions | List of all members
Loyc.Threading.SavedValue< T > Struct Template Reference

Designed to be used in a "using" statement to temporarily alter a ThreadLocalVariable<T> or Holder<T> or something else implementing IHasMutableValue<T>. More...


Source file:
Inheritance diagram for Loyc.Threading.SavedValue< T >:

Remarks

Designed to be used in a "using" statement to temporarily alter a ThreadLocalVariable<T> or Holder<T> or something else implementing IHasMutableValue<T>.

Public fields

readonly T _oldValue
 
readonly IHasMutableValue< T > _valueHolder
 

Properties

OldValue [get]
 

Public Member Functions

 SavedValue (IHasMutableValue< T > oldValue, T newValue)
 
void Dispose ()