Me stupid.
How can I know which assembly to reference if I just know the name of the class, for example System.Collections.Specialized.StringCollection
.
(Yes, I know that more often than not I can make an educated guess by looking at the namespace.)
Thanks
Alex
What I usually do is right-click the "StringCollection" in the editor and click "Go To Definition" then a window will pop up with the title "StringCollection [from Metadata]" then I just hover the mouse pointer to the title and a tooltip appears with the location of the assembly where the class comes from.
You can check in MSDN: The assembly containing the class is mentioned right at the top:
StringCollection Class
Represents a collection of strings.
Namespace: System.Collections.Specialized
Assembly: System (in System.dll)
Tested in VS 2008:
EDIT:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With