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
Comment actions Permalink

I have raised this as a feature request at http://youtrack.jetbrains.net/issue/JT-10093

0
Comment actions Permalink

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.