Class BaseDecodeType

BaseDecodeType class

Base class for MultyDecodeType and SingleDecodeType.

public abstract class BaseDecodeType : IEquatable<BaseDecodeType>

Methods

NameDescription
abstract ContainsAny(params BaseDecodeType[])Determines whether any of the given decode types is included into
Equals(BaseDecodeType)Returns a value indicating whether this instance is equal to a specified BaseDecodeType value.
virtual Equals(MultyDecodeType)Returns a value indicating whether this instance is equal to a specified MultyDecodeType value.
override Equals(object)Returns a value indicating whether this instance is equal to a specified BaseDecodeType value.
virtual Equals(SingleDecodeType)Returns a value indicating whether this instance is equal to a specified SingleDecodeType value.
override GetHashCode()Returns the hash code for this instance.
static TryParse(string, out BaseDecodeType)Converts the string representation of a BaseDecodeType to its instance, having determined the concrete type. A return value indicates whether the conversion succeeded or failed.
static TryParse(string, out MultyDecodeType)Converts the string representation of a MultyDecodeType to its instance. A return value indicates whether the conversion succeeded or failed.
static TryParse(string, out SingleDecodeType)Converts the string representation of a SingleDecodeType to its instance. A return value indicates whether the conversion succeeded or failed.

Examples

This sample shows how to use BaseDecodeType with SingleDecodeType and MultyDecodeType

[C#]
BaseDecodeType decodeOne = DecodeType.Code128;
BaseDecodeType decodeTwo = new MultyDecodeType(DecodeType.Code128, DecodeType.Code39Standard, DecodeType.Code39Extended);
[VB.NET]
Dim decodeOne As BaseDecodeType = DecodeType.Code128
Dim decodeTwo As BaseDecodeType = New MultyDecodeType(DecodeType.Code128, DecodeType.Code39Standard, DecodeType.Code39Extended)

See Also