I assume that you mean visibility of a field, since a variable does not have any visibility associated with it. Check out the ECMA specification on http://msdn.microsoft.com/netframework/ecma/. In Partition II: Metadata, you'll find the description of the Field and MethodDef tables (numbers 0x04 and 0x06 respectively). The field table has a Flags field which is defined in the FieldAttributes section of the ECMA spec and contains field visibility information. MethodDef has a Flags field which is defined in the MethodAttributes section of ECMA, and contains the visibility for a method.
-Shawn
How to know the variable/method is private or public from PE file??
How to know the variable/method is private or public from PE file??
Justine
There is great article about .NET File Format on codeproject by Ntoskrnl. It explain alot about .NET PE file.
You can read the article from here http://www.codeproject.com/dotnet/dotnetformat.asp
suryaj
Hi Nose,
I assume that you mean visibility of a field, since a variable does not have any visibility associated with it. Check out the ECMA specification on http://msdn.microsoft.com/netframework/ecma/. In Partition II: Metadata, you'll find the description of the Field and MethodDef tables (numbers 0x04 and 0x06 respectively). The field table has a Flags field which is defined in the FieldAttributes section of the ECMA spec and contains field visibility information. MethodDef has a Flags field which is defined in the MethodAttributes section of ECMA, and contains the visibility for a method.
-Shawn