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

Namespace: Altaxo.Collections
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3572.0 (4.8.3572.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 with a default value.
Public methodBoxedT(T) 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) Adds unboxed values from the specified boxed items to the destination collection.
Public methodStatic memberAddRange(ICollectionBoxedT, IEnumerableT) Adds boxed versions of the specified source items to the destination collection.
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 methodEquals(BoxedT) Determines whether this instance is equal to another boxed value.
Public methodEquals(Object)Determines whether the specified object is equal to the current object.
(Overrides ObjectEquals(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.
(Overrides ObjectGetHashCode)
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 Wraps the specified items in BoxedT instances.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodStatic memberToUnboxedArray Copies the specified boxed items into a new array of unboxed values.
Public methodStatic memberToUnboxedItems Returns the unboxed values from the specified boxed items.
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
See Also