adrenaline96

IBANManager Library Usage

Aug 8th, 2018 (edited)
465
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.66 KB | None | 0 0
  1. using IBAN_Manager;
  2.  
  3.             //table.ini can be had here https://github.com/adrenaline96/IBAN-Manager-Library/blob/master/table.ini
  4.             IBANManager ibm = new IBANManager("RO00AAAA1B31007593840000");  //object with artificial IBAN (00 check digits)
  5.  
  6.             string ibanWithCheckDigits = ibm.GenerateValidIban(); //the valid IBAN with valid check digits will be generated
  7.  
  8.             IBANManager ibm2 = new IBANManager("RO49AAAA1B31007593840000");
  9.  
  10.             string ibanStatus = ibm2.CheckIban();  //checks if the IBAN is valid, ibanStatus will be "Invalid" or "OK"
  11.  
  12.             string ibanCode = ibm2.GetIban(); //returns IBAN code from the object
Add Comment
Please, Sign In to add comment