Class BaseDecodeType

Class BaseDecodeType

Namespace: Aspose.BarCode.BarCodeRecognition
Assembly: Aspose.BarCode.dll (25.2.0)

Base class for MultyDecodeType and SingleDecodeType.

public abstract class BaseDecodeType : IEquatable<basedecodetype>

Inheritance

objectBaseDecodeType

Derived

MultyDecodeType, SingleDecodeType

Implements

IEquatable<basedecodetype>

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Examples

This sample shows how to use BaseDecodeType with SingleDecodeType and MultyDecodeType

BaseDecodeType decodeOne = DecodeType.Code128;
BaseDecodeType decodeTwo = new MultyDecodeType(DecodeType.Code128, DecodeType.Code39, DecodeType.Code39FullASCII);
Dim decodeOne As BaseDecodeType = DecodeType.Code128
Dim decodeTwo As BaseDecodeType = New MultyDecodeType(DecodeType.Code128, DecodeType.Code39, DecodeType.Code39FullASCII)

Methods

ContainsAny(params BaseDecodeType[])

Determines whether any of the given decode types is included into

public abstract bool ContainsAny(params BaseDecodeType[] types)

Parameters

types BaseDecodeType[]

Types to verify

Returns

bool

Value is a true if any types are included into

Equals(SingleDecodeType)

Returns a value indicating whether this instance is equal to a specified Aspose.BarCode.BarCodeRecognition.SingleDecodeType value.

public virtual bool Equals(SingleDecodeType other)

Parameters

other SingleDecodeType

An Aspose.BarCode.BarCodeRecognition.SingleDecodeType value to compare to this instance.

Returns

bool

true if obj has the same value as this instance; otherwise, false.

Equals(MultyDecodeType)

Returns a value indicating whether this instance is equal to a specified Aspose.BarCode.BarCodeRecognition.MultyDecodeType value.

public virtual bool Equals(MultyDecodeType other)

Parameters

other MultyDecodeType

An Aspose.BarCode.BarCodeRecognition.MultyDecodeType value to compare to this instance.

Returns

bool

true if obj has the same value as this instance; otherwise, false.

Equals(BaseDecodeType)

Returns a value indicating whether this instance is equal to a specified Aspose.BarCode.BarCodeRecognition.BaseDecodeType value.

public bool Equals(BaseDecodeType other)

Parameters

other BaseDecodeType

An Aspose.BarCode.BarCodeRecognition.BaseDecodeType value to compare to this instance.

Returns

bool

true if obj has the same value as this instance; otherwise, false.

Equals(object)

Returns a value indicating whether this instance is equal to a specified Aspose.BarCode.BarCodeRecognition.BaseDecodeType value.

public override bool Equals(object obj)

Parameters

obj object

An System.Object value to compare to this instance.

Returns

bool

true if obj has the same value as this instance; otherwise, false.

GetHashCode()

Returns the hash code for this instance.

public override int GetHashCode()

Returns

int

A 32-bit signed integer hash code.

TryParse(string, out SingleDecodeType)

Converts the string representation of a SingleDecodeType to its instance. A return value indicates whether the conversion succeeded or failed.

public static bool TryParse(string parsingType, out SingleDecodeType result)

Parameters

parsingType string

A string containing a SingleDecodeType in the format as “EAN8” or “EAN13” or “CodaBar”… to convert.

result SingleDecodeType

An actual SingleDecodeType is returned, when conversion has completed successfully; otherwise it returns indefinite type: DecodeType.None.

Returns

bool

true if parsingType was converted successfully; otherwise, false.

TryParse(string, out MultyDecodeType)

Converts the string representation of a MultyDecodeType to its instance. A return value indicates whether the conversion succeeded or failed.

public static bool TryParse(string parsingType, out MultyDecodeType result)

Parameters

parsingType string

A string containing a MultyDecodeType representation to convert.

result MultyDecodeType

An actual MultyDecodeType is returned, when conversion has completed successfully; otherwise it returns indefinite type: new MultyDecodeType(DecodeType.None)

Returns

bool

true if parsingType was converted successfully; otherwise, false.

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.

public static bool TryParse(string parsingType, out BaseDecodeType result)

Parameters

parsingType string

A string containing a MultyDecodeType representation to convert.

result BaseDecodeType

An actual MultyDecodeType is returned, when conversion has completed successfully; otherwise it returns indefinite type: DecodeType.None.

Returns

bool

true if parsingType was converted successfully; otherwise, false. </basedecodetype>

 English