Class DayOfWeekExtensions
Extension methods for System.DayOfWeek.
Since 2.0.x
Availability net45, netstandard1.3, netstandard2.0
Inheritance
Object
DayOfWeekExtensions
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 DayOfWeekExtensions
Methods
ToIsoDayOfWeek(DayOfWeek)
Converts a System.DayOfWeek into the corresponding IsoDayOfWeek.
Since 2.0.x
Availability net45, netstandard1.3, netstandard2.0
Declaration
public static IsoDayOfWeek ToIsoDayOfWeek(this DayOfWeek dayOfWeek)
Parameters
Type | Name | Description |
---|---|---|
DayOfWeek | dayOfWeek | The DayOfWeek to convert. |
Returns
Type | Description |
---|---|
IsoDayOfWeek | The IsoDayOfWeek equivalent to dayOfWeek |
Remarks
This is a convenience method which calls ToIsoDayOfWeek(DayOfWeek).