ChannelCollectionBase<T> Class

Represents a protocol independent collection of IChannel objects.
This is the base class of all collection classes in the phasor protocols library; it is the root of the collection class hierarchy.

Definition

Namespace: Gemstone.PhasorProtocols
Assembly: Gemstone.PhasorProtocols (in Gemstone.PhasorProtocols.dll) Version: 1.0.128 -- Release Build+dd7f32701ba80de4d5b0557e84e0ddc18a34573f
[SerializableAttribute]
public abstract class ChannelCollectionBase<T> : ListCollection<T>, 
	IChannelCollection<T>, IChannel, ISupportBinaryImage, IList<T>, ICollection<T>, 
	IEnumerable<T>, IEnumerable, INotifyCollectionChanged, ISerializable
where T : IChannel
Inheritance
Object    Collection<T>    ListCollection<T>    ChannelCollectionBase<T>
Derived
Implements
ISupportBinaryImage, IChannel, IChannelCollection<T>, ICollection<T>, IEnumerable<T>, IList<T>, IEnumerable, INotifyCollectionChanged, ISerializable

Type Parameters

T
Specific IChannel type that the ChannelCollectionBase<T> contains.

Remarks

This channel collection implements IChannel (inherited via IChannelCollection<T>) for the benefit of providing a cumulative binary image of the entire collection.

Constructors

ChannelCollectionBase<T>() Creates a new ChannelCollectionBase<T>.
ChannelCollectionBase<T>(Int32, Boolean) Creates a new ChannelCollectionBase<T> using specified lastValidIndex.
ChannelCollectionBase<T>(SerializationInfo, StreamingContext) Creates a new ChannelCollectionBase<T> from serialization parameters.

Properties

Attributes Gets a Dictionary<TKey, TValue> of string based property names and values for this IChannel object.
BinaryLength Gets the length of the ChannelCollectionBase<T>.
Count Gets the number of elements contained in the ICollection<T>.
(Inherited from ListCollection<T>)
FixedElementSize Gets flag that indicates if collection elements have a fixed size.
Item(Int32) Gets or sets the element at the specified index.
(Inherited from ListCollection<T>)
Items Gets a IList<T> wrapper around the Collection<T>.
(Inherited from ListCollection<T>)
MaximumCount Gets or sets the maximum allowed number of items for this ChannelCollectionBase<T>.
State Gets or sets the parsing state for this IChannel object.
Tag Gets or sets a user definable reference to an object associated with this IChannel object.

Methods

Add(T1) Adds an item to the ICollection<T>.
(Inherited from ListCollection<T>)
AddRange Adds the elements of the specified collection to the end of the ChannelCollectionBase<T>.
Clear Removes all items from the ICollection<T>.
(Inherited from ListCollection<T>)
ClearItems Removes all elements from the ChannelCollectionBase<T>.
(Overrides ClearItems)
Contains(T1) Determines whether the ICollection<T> contains a specific value.
(Inherited from ListCollection<T>)
CopyTo(T1[], Int32) Copies the elements of the ICollection<T> to an Array, starting at a particular Array index.
(Inherited from ListCollection<T>)
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GenerateBinaryImage Generates binary image of the object and copies it into the given buffer, for BinaryLength bytes.
GetEnumerator Returns an enumerator that iterates through the Collection<T>.
(Inherited from ListCollection<T>)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetObjectData Populates a SerializationInfo with the data needed to serialize the target object.
GetTypeGets the Type of the current instance.
(Inherited from Object)
IndexOf(T1) Determines the index of a specific item in the IList<T>.
(Inherited from ListCollection<T>)
Insert(Int32, T1) Inserts an item to the IList<T> at the specified index.
(Inherited from ListCollection<T>)
InsertItem Inserts an element into the ChannelCollectionBase<T> at the specified index.
(Overrides InsertItem(Int32, T1))
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
OnCollectionChanged Raises the NotifyCollectionChangedEventHandler event.
RefreshBinding Manually sends a Reset to the collection changed event.
Remove(T1) Removes the first occurrence of a specific object from the ICollection<T>.
(Inherited from ListCollection<T>)
RemoveAt(Int32) Removes the element at the specified index of the Collection<T>.
(Inherited from ListCollection<T>)
RemoveItem Removes the element at the specified index of the ChannelCollectionBase<T>.
(Overrides RemoveItem(Int32))
SetItem Replaces the element at the specified index.
(Overrides SetItem(Int32, T1))
ToStringReturns a string that represents the current object.
(Inherited from Object)

Events

CollectionChanged Notifies listeners of dynamic changes, such as when items get added and removed or the whole list is refreshed.

Extension Methods

CopyImage This is a common optimized block copy function for any kind of data.
(Defined by Common)

See Also