Skip to content
Discussion options

You must be logged in to vote

even if the caller fulfill the constraints of internal?

This isn't a thing in C#. There isn't a way for ToString() to know whether it's being called from the same assembly or from a different assembly, or even if that should mean anything. For example, it could be called from an internal logging adapter that's then getting sent to a non-internal method. Very intentionally, we do not include internal members.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@CarlosHAraujo
Comment options

Answer selected by CarlosHAraujo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants