Skip to content

Instantly share code, notes, and snippets.

@sandrinodimattia
Created July 23, 2012 06:41
Show Gist options
  • Save sandrinodimattia/3162303 to your computer and use it in GitHub Desktop.
Save sandrinodimattia/3162303 to your computer and use it in GitHub Desktop.
eID MW sample application
try
{
BEID_ReaderSet readerSet = BEID_ReaderSet.instance();
BEID_ReaderContext reader = readerSet.getReader();
if (reader.isCardPresent())
{
BEID_EIDCard card = reader.getEIDCard();
BEID_EId doc = card.getID();
string firstname = doc.getFirstName();
Console.WriteLine("Firstname: " + firstname);
string lastname = doc.getSurname();
Console.WriteLine("Lastname: " + lastname);
string birthdate = doc.getDateOfBirth();
Console.WriteLine("Birthdate: " + birthdate);
}
BEID_ReaderSet.releaseSDK();
}
catch (Exception ex)
{
Console.WriteLine(ex);
}
Console.Read();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment