DLL for the get details from National Identity Card using C# .NET Framework
You must add this dll to your project before using it.
👉First go to the solution explorer on the right side and right click on the references under your project.
👉Then select add references and then click on the browse button, select dll file and click on the ok button.
as follows
👉Then you need to import this code segment
using SMDgetNicDetails;
as follows
Now you can create object using GetNicDetails class
GetNicDetails nic;
Then you should pass the Sri Lanka NIC (old/new) as a string using parameterized constructor
nic = new GetNicDetails("200013423310");
Now you can access the property one by one using nic object.
Here, when a wrong nic is given, the return is 0 which you can use when validations.