I ran into a situation that 10 minutes searching could not give me an answer to, and decide to post the question to StackOverflow. While writing the question, the "Questions that may already have your answer" feature correctly found an answer that did in fact already have an answer. I would like to improve the visibility of the existing Q&A, but don't think I could edit the existing question to be more visible.
The proposed question:
How can I access a real property on an object implementing IDictionary?
Tags: powershellPowershell converts property access on an object implementing
IDictionary
into accesses to the dictionary entries. Consider the following powershell snippet:$d = new-object System.Collections.Hashtable $d.Foo = 'ABC' $d.Bar = 'DEF' $d.Count = 1 Write-Host $d.Count # prints '1'
How do I access the "real"
Hashtable.Count
?
The existing question/answer: How to set a property in Powershell on an instance of a class that implements IDictionary and ICollection
Is it acceptable to post a question and immediately mark it as duplicate to the existing question?