Skip to content

Instantly share code, notes, and snippets.

View taurit's full-sized avatar

Paweł Bulwan taurit

  • This is a private profile, not affiliated with any company
  • Warsaw, Poland
View GitHub Profile
@taurit
taurit / ValidateFiscalCode.cs
Last active February 25, 2021 14:49 — forked from supix/CheckCodiceFiscale.cs
Italian Fiscal Code validation in C#
/// <summary>
/// Validate Italian Fiscal Code (https://en.wikipedia.org/wiki/Italian_fiscal_code_card)
/// </summary>
/// <param name="fiscalCode">code to be checked</param>
/// <returns><c>true</c> if checksum is valid, <c>false</c> otherwise</returns>
/// <remarks>
/// Based on: https://gist.github.com/supix/97dfe1e2c4b804bd3721faf4bec1c573
/// </remarks>
public static bool IsFiscalCodeValid(string fiscalCode)
{