-1

I need to calculate the Italian fiscal code (tax code) in C#.

I've found a PHP script to calculate this 16 alphanumeric code but I am not a PHP guy and it might take me many hours to translate this script from PHP to C#.

Here the link with the PHP code: http://www.createwebsite.it/script-per-calcolo-del-codice-fiscale

Cody Gray - on strike
  • 239,200
  • 50
  • 490
  • 574
Pablo Azorin
  • 13
  • 1
  • 4

1 Answers1

4

Here: http://www.dotnethell.it/forum/messages.aspx?ThreadID=10346 there is an attachment with a class that should do the work. If you cannot read italian, just look for 185_CodiceFiscale.zip

If you can read Italian, here there is a small project with a step by step guide to build the code: http://www.sviluppo-software.info/2010/01/calcolare-il-codice-fiscale-in-c.html Should be interesting, if you want to learn :)

garph0
  • 1,700
  • 1
  • 13
  • 16
  • I've finally found what I was looking for. My apologies if I did express me wrong. – Pablo Azorin Mar 02 '11 at 04:23
  • The second link is missing (`404`), @garph0. Can you also provide link to the algorithm? – Bogdan Bogdanov Apr 28 '15 at 09:23
  • Sure. On [wikipedia](https://en.wikipedia.org/wiki/Italian_fiscal_code_card) you can find the translation of the algo as defined in the law's text: - Please be aware that if I'm not mistaken there may be cases of conflicts in which the code is manually overridden (for instance picking a different letter for the name) – garph0 Apr 28 '15 at 15:49