Move Initialisation to constructor

For the following line, resharper offers to "Move Initialisation to constructor"

public TimeSpan ShortBreakDuration = TimePeriod.Duration.Minutes(5);

For the following line, can an optimisation be offered to move to a static constructor?
public static TimeSpan ShortBreakDuration = TimePeriod.Duration.Minutes(5);

2 comments

you have selected youtrack as project. I am not sure if you can change this but for the future make sure you have selected resharper as project. :)

0

Please sign in to leave a comment.