Class MediaFormatCollection<TFormat, TFormatCollection>
A media format collection.
Inheritance
System.Object
Collection<TFormat, TFormatCollection>
MediaFormatCollection<TFormat, TFormatCollection>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public abstract class MediaFormatCollection<TFormat, TFormatCollection> : Collection<TFormat, TFormatCollection> where TFormat : MediaFormat<TFormat> where TFormatCollection : MediaFormatCollection<TFormat, TFormatCollection>
Type Parameters
Name | Description |
---|---|
TFormat | The type of the format. |
TFormatCollection | The type of the format collection. |
Methods
AddSuccess(TFormat)
Invoked when an element is added to the collection.
Declaration
protected override void AddSuccess(TFormat value)
Parameters
Type | Name | Description |
---|---|---|
TFormat | value | The format. |
Overrides
FM.LiveSwitch.Collection<TFormat, TFormatCollection>.AddSuccess(TFormat)
GetCompatible(TFormat)
Gets a format by compatibility to another format.
Declaration
public TFormat GetCompatible(TFormat format)
Parameters
Type | Name | Description |
---|---|---|
TFormat | format | The format. |
Returns
Type | Description |
---|---|
TFormat |
GetCompatibles(TFormat)
Gets a format by compatibility to another format.
Declaration
public TFormat[] GetCompatibles(TFormat format)
Parameters
Type | Name | Description |
---|---|---|
TFormat | format | The format. |
Returns
Type | Description |
---|---|
TFormat[] |
GetEquivalent(TFormat)
Gets a format by equivalence to another format.
Declaration
public TFormat GetEquivalent(TFormat format)
Parameters
Type | Name | Description |
---|---|---|
TFormat | format | The format. |
Returns
Type | Description |
---|---|
TFormat |
GetEquivalent(TFormat, Boolean)
Gets a format by equivalence to another format, ignoring whether the format is packetized.
Declaration
public TFormat GetEquivalent(TFormat format, bool ignoreIsPacketized)
Parameters
Type | Name | Description |
---|---|---|
TFormat | format | The format. |
System.Boolean | ignoreIsPacketized | if set to |
Returns
Type | Description |
---|---|
TFormat |
HasCompatible(TFormat)
Determines if the collection has a compatible format.
Declaration
public bool HasCompatible(TFormat format)
Parameters
Type | Name | Description |
---|---|---|
TFormat | format | The format. |
Returns
Type | Description |
---|---|
System.Boolean |
HasEquivalent(TFormat)
Determines if the collection has an equivalent format.
Declaration
public bool HasEquivalent(TFormat format)
Parameters
Type | Name | Description |
---|---|---|
TFormat | format | The format. |
Returns
Type | Description |
---|---|
System.Boolean |
RemoveSuccess(TFormat)
Invoked when an element is removed from the collection.
Declaration
protected override void RemoveSuccess(TFormat value)
Parameters
Type | Name | Description |
---|---|---|
TFormat | value | The format. |
Overrides
FM.LiveSwitch.Collection<TFormat, TFormatCollection>.RemoveSuccess(TFormat)