C# Class NContrib.International.NationalId.SwedishPersonNumber

Afficher le fichier Open project: veracross/ncontrib

Méthodes publiques

Méthode Description
CenturyIndicator ( System.DateTime dob ) : char
GetGender ( int löpnummer ) : Gender
GetGender ( string personnummer ) : Gender
IsChecksumValid ( ) : bool
IsChecksumValid ( string personnummer ) : bool
IsValidFormat ( string personnummer ) : bool
Parse ( string personnummer ) : SwedishPersonNumber
ToShortString ( ) : string
ToString ( ) : string

Private Methods

Méthode Description
Format ( string dateFormat ) : string
SwedishPersonNumber ( ) : System

Method Details

CenturyIndicator() public static méthode

public static CenturyIndicator ( System.DateTime dob ) : char
dob System.DateTime
Résultat char

GetGender() public static méthode

public static GetGender ( int löpnummer ) : Gender
löpnummer int
Résultat Gender

GetGender() public static méthode

public static GetGender ( string personnummer ) : Gender
personnummer string
Résultat Gender

IsChecksumValid() public méthode

public IsChecksumValid ( ) : bool
Résultat bool

IsChecksumValid() public static méthode

public static IsChecksumValid ( string personnummer ) : bool
personnummer string
Résultat bool

IsValidFormat() public static méthode

public static IsValidFormat ( string personnummer ) : bool
personnummer string
Résultat bool

Parse() public static méthode

public static Parse ( string personnummer ) : SwedishPersonNumber
personnummer string
Résultat SwedishPersonNumber

ToShortString() public méthode

public ToShortString ( ) : string
Résultat string

ToString() public méthode

public ToString ( ) : string
Résultat string