Class DayOfWeekExtensions
Extension methods for System.DayOfWeek.
Since 2.0.x
Availability net6.0, netstandard2.0
Inheritance
Object
DayOfWeekExtensions
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
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 net6.0, 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).