I need to implement this:
static class MyStaticClass { public const TimeSpan theTime = new TimeSpan(13, 0, 0); public static bool IsTooLate(DateTime
Using readonly instead of const can be initialized and not modified after that. Is that what you're looking for?
readonly
const
Code example:
static class MyStaticClass { public static readonly TimeSpan theTime; static MyStaticClass { theTime = new TimeSpan(13, 0, 0) } }