Answer the question
In order to leave comments, you need to log in
How can a variable of one type in C# be assigned to another if they are not in the same inheritance branch?
Please, prompt:
Here is in C# here such type XNamespace.
Inherits directly from System.Object.
At the same time, this form of writing is quite legitimate:
XNamespace ds = "http://www.w3.org/2000/09/xmldsig#";
Answer the question
In order to leave comments, you need to log in
Because there is such an operator that constructs an XNamespace from a string.
https://msdn.microsoft.com/en-us/library/system.xm...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question