CrontabField Class

Namespace:
Weavy.Core.Cron
Assembly:
Weavy.Core.dll

Represents a single crontab field.

public sealed class CrontabField : ICrontabField
Inheritance:
System.Object → CrontabField
Implements:
ICrontabField

Methods

Contains(int) Determines if the given value occurs in the field.
Days(string) Parses a crontab field expression representing days in any given month.
DaysOfWeek(string) Parses a crontab field expression representing days of a week.
Format(TextWriter)
Format(TextWriter, bool)
GetFirst() Gets the first value of the field or -1.
Hours(string) Parses a crontab field expression representing hours.
Minutes(string) Parses a crontab field expression representing minutes.
Months(string) Parses a crontab field expression representing months.
Next(int) Gets the next value of the field that occurs after the given start value or -1 if there is no next value available.
Parse(CrontabFieldKind, string) Parses a crontab field expression given its kind.
ToString()
ToString(string)
TryParse(CrontabFieldKind, string)
TryParse(CrontabFieldKind, string, ExceptionHandler)

Extension Methods

IsNullOrDefault(T) Gets a value indicating if the specified value has the default value of the generic type.
Serialize(object) Serializes an object, or graph of connected objects, to a byte array.
SerializeToJson(object, Formatting?, JsonSerializerSettings) Serializes an object, or graph of connected objects, to a json string.
IsValid(object) Determines whether the specified object is valid by evaluating each ValidationAttribute instance that is attached to the object type.