C# Class FarsiLibrary.Utils.Internals.CultureHelper

Base culture information
ファイルを表示 Open project: HEskandari/FarsiLibrary

Public Methods

Method 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

Method Description
CreateGregorianDayOfWeekMap ( ) : void
CreatePersianDayOfWeekMap ( ) : void
CultureHelper ( ) : System

Method Details

GetCultureDayOfWeek() public static method

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

GetDayOfWeek() public static method

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

IsArabicCulture() public static method

public static IsArabicCulture ( ) : bool
return bool

IsArabicCulture() public static method

public static IsArabicCulture ( this culture ) : bool
culture this
return bool

IsFarsiCulture() public static method

public static IsFarsiCulture ( ) : bool
return bool

IsFarsiCulture() public static method

public static IsFarsiCulture ( this culture ) : bool
culture this
return bool