DayValueMap

Dictionary wrapper that maps days to the given type.

Methods

Returns the value for today plus the given amount of days (e.g. 0 is today, -1 is yesterday and 1 is tomorrow). If the value doesn't exist, returns the given default value.

public T Get(int daysToAdd, T defaultValue)

Sets the value for today plus the given amount of days (e.g. 0 is today, -1 is yesterday and 1 is tomorrow).

public void Set(int daysToAdd, T value)

Properties

Dictionary that contains days and their values.

public Dictionary<DateTime, T> Dictionary { get; }

Last updated