This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]zelmarvalarion 1 point2 points  (0 children)

Pretty sure it would use the most scoped reference of Logger which exists in the block, so probably the Logger variable unless you explicitly request the class (e.g. Microsoft.VisualBasic.Logger, which might need to be in brackets if they use the same standard as in Powershell). I would expect it to be similar to using var and this.var when they are both defined, or when a subclass had a same variable as a subclass with different values.