Want开发者_StackOverflow社区 to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this questionI want to see the contents of a byte array, but Reflector don't show them. Why? Is this due to some technical limitation, or is just a feature not implemented by Reflector?
Is there any other tool which I can use to do this?
Static members are initialized in the class' static constructor as far as the CLR is concerned.
If you disassemble the .cctor()
method, you should see the assignment to myname
.
does this byte array initialized, cause I suppose you're reading a declaration of an array ? Declaration is empty.
You'll need to find the code that assigns the byte array contents. Given the member list visible in the tree, I'm guessing you'll find it in the static constructor (.cctor).
精彩评论