Class IsoDayOfWeekExtensions
Extension methods
Since 2.0.x
Availability net45, netstandard1.3
Inheritance
Object
IsoDayOfWeekExtensions
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: NodaTime.Extensions
Assembly: NodaTime.dll
Syntax
public static class IsoDayOfWeekExtensions
Methods
ToDayOfWeek(IsoDayOfWeek)
Converts a IsoDayOfWeek into the corresponding System.DayOfWeek.
Since 2.1.x
Availability net45, netstandard1.3
Declaration
public static DayOfWeek ToDayOfWeek(this IsoDayOfWeek isoDayOfWeek)
Parameters
Type | Name | Description |
---|---|---|
IsoDayOfWeek | isoDayOfWeek | The IsoDayOfWeek to convert. |
Returns
Type | Description |
---|---|
DayOfWeek | The DayOfWeek equivalent to isoDayOfWeek |
Remarks
This is a convenience method which calls ToDayOfWeek(IsoDayOfWeek).
ToIsoDayOfWeek(IsoDayOfWeek)
Converts a IsoDayOfWeek into the corresponding System.DayOfWeek.
Since 2.0.x
Availability net45, netstandard1.3
Declaration
[Obsolete("This method was incorrectly named. Use ToDayOfWeek instead")]
public static DayOfWeek ToIsoDayOfWeek(this IsoDayOfWeek isoDayOfWeek)
Parameters
Type | Name | Description |
---|---|---|
IsoDayOfWeek | isoDayOfWeek | The IsoDayOfWeek to convert. |
Returns
Type | Description |
---|---|
DayOfWeek | The DayOfWeek equivalent to isoDayOfWeek |
Remarks
This is a convenience method which calls ToDayOfWeek(IsoDayOfWeek).