If I have a type like this:
public struct Effect
{
public int Value { get; set; }
public static int MinValue = Int32.MinValue;
}
Will MinValueonly ONCE be initialized, just like executing a static constructor? Or should I initialize MinValueinside the static constructor?
Will it be different for classes?
source
share