C# Class FarsiLibrary.Utils.Internals.CultureHelper

Base culture information
Afficher le fichier Open project: HEskandari/FarsiLibrary

Méthodes publiques

Méthode Description
GetCultureDayOfWeek ( int day, CultureInfo culture ) : DayOfWeek

Finds the corresponding DayOfWeek in specified culture

GetDayOfWeek ( System.DateTime dt, Calendar calendar ) : int

Returns the day of week based on calendar.

IsArabicCulture ( ) : bool
IsArabicCulture ( this culture ) : bool
IsFarsiCulture ( ) : bool
IsFarsiCulture ( this culture ) : bool

Private Methods

Méthode Description
CreateGregorianDayOfWeekMap ( ) : void
CreatePersianDayOfWeekMap ( ) : void
CultureHelper ( ) : System

Method Details

GetCultureDayOfWeek() public static méthode

Finds the corresponding DayOfWeek in specified culture
public static GetCultureDayOfWeek ( int day, CultureInfo culture ) : DayOfWeek
day int
culture System.Globalization.CultureInfo
Résultat DayOfWeek

GetDayOfWeek() public static méthode

Returns the day of week based on calendar.
public static GetDayOfWeek ( System.DateTime dt, Calendar calendar ) : int
dt System.DateTime
calendar System.Globalization.Calendar
Résultat int

IsArabicCulture() public static méthode

public static IsArabicCulture ( ) : bool
Résultat bool

IsArabicCulture() public static méthode

public static IsArabicCulture ( this culture ) : bool
culture this
Résultat bool

IsFarsiCulture() public static méthode

public static IsFarsiCulture ( ) : bool
Résultat bool

IsFarsiCulture() public static méthode

public static IsFarsiCulture ( this culture ) : bool
culture this
Résultat bool