Possible Duplicate:
Difference between Property and Field in C# .NET 3.5+
Sample code:
public struct State
{
private readonly byte state;
private State (byte pState)
{
state = pState;
}
// property...
public static State StateOne
{
get
{
return new State (1);
}
}
// or...
public static readonly State StateOne = new State (1);
}
Should I use properties or fields? Performance doesnt matter in this example.