pcsc-sharp : PCSC Namespace

SCardHelper Class

Helper class that offers methods to convert various values into strings.

public class SCardHelper

Remarks

Requirements

Namespace: PCSC
Assembly: pcsc-sharp (in pcsc-sharp.dll)
Assembly Versions: 1.0.0.0, 2.0.0.0, 2.0.0.1

Members

See Also: Inherited members from object.

Public Constructors

Documentation for this section has not yet been entered.

Public Methods

static
GetAttrDesc<T> (T) : string
Returns a description string of an enumeration attribute.
static
StringifyError (SCardError) : string
Returns a human readable text for the given PC/SC error code.

Member Details

SCardHelper Constructor

Documentation for this section has not yet been entered.

public SCardHelper ()

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: PCSC
Assembly: pcsc-sharp (in pcsc-sharp.dll)
Assembly Versions: 1.0.0.0, 2.0.0.0, 2.0.0.1

GetAttrDesc<T> Generic Method

Returns a description string of an enumeration attribute.

public static string GetAttrDesc<T> (T attr)

Type Parameters

T
Documentation for this section has not yet been entered.

Parameters

attr
Enumeration attribute.

Returns

If available: a description string of the specified attribute. Otherwise null.

Remarks

Requirements

Namespace: PCSC
Assembly: pcsc-sharp (in pcsc-sharp.dll)
Assembly Versions: 1.0.0.0, 2.0.0.0, 2.0.0.1

StringifyError Method

Returns a human readable text for the given PC/SC error code.

public static string StringifyError (SCardError code)

Parameters

code
Error or return code.

Returns

A human readable string.

Remarks

Warning! This method behaves differently compared to the original PC/SC-Lite pcsc_stringify_error function. Instead of the (const) variable name it returns a short text description.

Requirements

Namespace: PCSC
Assembly: pcsc-sharp (in pcsc-sharp.dll)
Assembly Versions: 1.0.0.0, 2.0.0.0, 2.0.0.1