Friday, June 17, 2005

.NET Namespaces

.NET Namespaces (Logged in as: kiranmayee): "Why is it that namespaces in .Net are referenced with an http:// prefix? You can see this in Avalon and Indigo samples, where a namespace will be declared as follows:

namespace Microsoft.ServiceModel.Samples{
...
}


Then, a namespace will be referenced as follows:

[ServiceContract(Namespace = 'http://Microsoft.ServiceModel.Samples')]
...


If you attempt to navigate to such an address, it won't resolve to anything. The same goes with the Avalon/XAML namespace. I just don't understand..."


Check the thread for answer....

1 comment:

Anonymous said...

hey

good to see a nice .net blog. Cool.

Sudhakar
http://blogs.msdn.com/devnotes