Is this article technically correct? I don't know all the technical details about the differences but it seems that the readonly examples are wrong in several places.
"Can be declared static."
class X
{
public static int i=10; //No Error
}
this is just a normal static int, shouldnt it be:
class X
{
public static readonly int i=10; //No Error
}
The next box uses
const int i=k; //No error
which I would expect to be
readonly int i=k; //No error
And then the "Can be initialized in declaration or by code in the constructor." box uses both readonly and const in a single declaration.