Hi,
The default access modifier in C# is private for a class member, internal for a class.
public class Example
{
int aNumber; // private member variable of type int
private int anotherNumber; // also a private member variable of type int
public string excitingNewType; // public member variable of type string (for variety)
}
class AnotherExample // internal access modifier
{
}
In the code example you posted, there is also another clue, the variable has a “m_” prefix. This is a little bit old school perhaps, but was used to designate member variables, member variables are typically private and may be exposed with properties, or, only used within methods.
Personally, I find not specifying access modifiers, even though not always necessary, to be a little lazy and, as demonstrated here, can lead to confusion.
Hope this helps
See also;