Click or drag to resize

BoxedT Class

Boxes a single value into a class. The value can be get/set by the property Value. Since the value is accessible by a property, this class can be used in collections as data sources for data grids, etc. For this, it additionally implements both INotifyPropertyChanged and IEditableObject
Inheritance Hierarchy
SystemObject
  Altaxo.CollectionsBoxedT

Namespace: Altaxo.Collections
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public class Boxed<T> : INotifyPropertyChanged, IEditableObject

Type Parameters

T
The type of the value to be boxed.

The BoxedT type exposes the following members.

Constructors
 NameDescription
Public methodBoxedT Initializes a new instance of the BoxedT class.
Top
Properties
 NameDescription
Public propertyValue Gets or sets the value.
Top
Methods
 NameDescription
Public methodStatic memberAddRange(ICollectionT, IEnumerableBoxedT) 
Public methodStatic memberAddRange(ICollectionBoxedT, IEnumerableT) 
Public methodBeginEdit Begins an edit on an object.
Public methodCancelEdit Discards changes since the last BeginEdit call.
Public methodEndEdit Pushes changes since the last BeginEdit or AddNew call into the underlying object.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodStatic memberToBoxedItems 
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodStatic memberToUnboxedArray 
Public methodStatic memberToUnboxedItems 
Top
Events
 NameDescription
Public eventPropertyChangedOccurs when the boxed value changed.
Top
Operators
 NameDescription
Public operatorStatic member(T to BoxedT) Performs an implicit conversion from T to BoxedT.
Public operatorStatic member(BoxedT to T) Performs an implicit conversion from BoxedT to T.
Top
Fields
 NameDescription
Protected field_valueThe boxed value.
Top
See Also