What is the namespace 'Standard'?
Asked Answered
B

1

11

When I try to write a new using clause, I notice that Intellisense has, in its list, a namespace called Standard. However, this seems to have no members on closer inspection. What is this namespace?

Birkle answered 22/2, 2013 at 15:5 Comment(6)
It it part of your own project?Refuel
No, I'm pretty sure, as I opened up another project, and it was still there. EDIT: It seems to appear in EVERY WPF project, but not on any other projects.Alp
I can confirm it seems like a valid namespace on my machine too, putting a using Standard; doesn't cause any errors in a WPF applicationSaratov
I don't see it when I start a new WPF application, and get a build error if I try to use it anyway. Using Studio 2010 / .NET 4.Lipoprotein
@JeremyWiggins Seems to be a 4.5 namespace, according to the answer.Alp
Try searching for 'standard' in Visual Studio's object browser (found under the 'view' menu)Bataan
C
9

There is a namespace in the PresentationFramework assembly called "Standard". All of its types are internal though, so you can't see any of the types. However, you can still use the namespace.

The namespace seems to have appeared in the 4.5 reference assembly, it doesn't appear in the 4.0 one.

enter image description here

Cathexis answered 22/2, 2013 at 15:18 Comment(1)
@BoltClock wait till you see the wallpaper.Cathexis

© 2022 - 2024 — McMap. All rights reserved.