V
Vladimir Bezugliy
Why I can't declare a member of class as "static const".
As far as I see I should declare as "static readonly".
class StateObject
{
public static const int BufferSize = 1024;
}
F:\.NET\ChatterBox\MessageListener.cs(15): The constant
'ChatterBox.StateObject.BufferSize' cannot be marked static
Vladimir Bezugliy.
As far as I see I should declare as "static readonly".
class StateObject
{
public static const int BufferSize = 1024;
}
F:\.NET\ChatterBox\MessageListener.cs(15): The constant
'ChatterBox.StateObject.BufferSize' cannot be marked static
Vladimir Bezugliy.