Class MultiDecodeType

MultiDecodeType class

Composite decode type.

public class MultiDecodeType : BaseDecodeType, IEquatable<MultiDecodeType>

Constructors

NameDescription
MultiDecodeType(params BaseDecodeType[])Initializes a new instance of the MultiDecodeType class.
MultiDecodeType(params SingleDecodeType[])Initializes a new instance of the MultiDecodeType class.

Properties

NameDescription
GetSingleTypesCount { get; }Returns a number of single types.

Methods

NameDescription
Add(SingleDecodeType)Adds one more SingleDecodeType to the MultiDecodeType.
ContainsAll(params BaseDecodeType[])Check if this contains all types from barcode types.
override ContainsAny(params BaseDecodeType[])Is contain any of types
Equals(BaseDecodeType)Returns a value indicating whether this instance is equal to a specified BaseDecodeType value.
override Equals(MultiDecodeType)Returns a value indicating whether this instance is equal to a specified MultiDecodeType value.
override Equals(object)Returns a value indicating whether this instance is equal to a specified MultiDecodeType value.
override Equals(SingleDecodeType)Returns a value indicating whether this decode types collection contains only specified SingleDecodeType value.
Exclude(SingleDecodeType)Excludes SingleDecodeType from the MultiDecodeType and returns new MultiDecodeType instance.
override GetHashCode()Returns the hash code for this instance.
GetSingleTypes()Represents a list of single types.
override ToString()Overridden method representing MultiDecodeType as a string.
static TryParse(string, out MultiDecodeType)Converts the string representation of a MultiDecodeType to its instance. A return value indicates whether the conversion succeeded or failed.

Examples

This sample shows how to create compound MultiDecode types that combine SingleDecodeType and MultiDecode types.

[C#]
MultiDecodeType types1 = new MultiDecodeType(DecodeType.QR, DecodeType.DataMatrix);
MultiDecodeType types2 = new MultiDecodeType(types1, DecodeType.Code128, DecodeType.Code39);
[VB.NET]
Dim multiType1 As MultiDecodeType 
multiType1 = New MultiDecodeType(DecodeType.QR, DecodeType.DataMatrix)
Dim multiType2 As MultiDecodeType
multiType2 = New MultiDecodeType(multiType1, DecodeType.Code128, DecodeType.Code39)

See Also