本文整理汇总了C#中ICSharpCode.XmlEditor.QualifiedName.ToString方法的典型用法代码示例。如果您正苦于以下问题:C# QualifiedName.ToString方法的具体用法?C# QualifiedName.ToString怎么用?C# QualifiedName.ToString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ICSharpCode.XmlEditor.QualifiedName
的用法示例。
在下文中一共展示了QualifiedName.ToString方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: NullPrefixAndNonEmptyNamespace
public void NullPrefixAndNonEmptyNamespace()
{
QualifiedName name = new QualifiedName("root", "urn:my-uri", null);
Assert.AreEqual("root [urn:my-uri]", name.ToString());
}
示例2: CreateQualifiedNameWithXmlNamespaceObject
public void CreateQualifiedNameWithXmlNamespaceObject()
{
XmlNamespace ns = new XmlNamespace("prefix", "namespace");
QualifiedName name = new QualifiedName("elementName", ns);
Assert.AreEqual("prefix:elementName [namespace]", name.ToString());
}
示例3: NullPrefix
public void NullPrefix()
{
QualifiedName name = new QualifiedName("root", String.Empty, null);
Assert.AreEqual("root", name.ToString());
}
示例4: NullPrefixAndNullNamespace
public void NullPrefixAndNullNamespace()
{
QualifiedName name = new QualifiedName("root", null, null);
Assert.AreEqual("root", name.ToString());
}
示例5: NameAndNamespaceAndPrefixS
public void NameAndNamespaceAndPrefixS()
{
QualifiedName name = new QualifiedName("root", "urn:my-uri", "a");
Assert.AreEqual("a:root [urn:my-uri]", name.ToString());
}
示例6: NameAndPrefixOnly
public void NameAndPrefixOnly()
{
QualifiedName name = new QualifiedName("root", String.Empty, "b");
Assert.AreEqual("b:root", name.ToString());
}
示例7: NameOnly
public void NameOnly()
{
QualifiedName name = new QualifiedName("root", String.Empty);
Assert.AreEqual("root", name.ToString());
}
示例8: EmptyQualifiedName
public void EmptyQualifiedName()
{
QualifiedName name = new QualifiedName();
Assert.AreEqual(String.Empty, name.ToString());
}
示例9: QualifiedNamePrefixChanged
public void QualifiedNamePrefixChanged()
{
QualifiedName name = new QualifiedName("root", "ns", "a");
name.Prefix = "newprefix";
Assert.AreEqual("newprefix:root [ns]", name.ToString());
}
示例10: QualifiedNameNamespaceChanged
public void QualifiedNameNamespaceChanged()
{
QualifiedName name = new QualifiedName("root", "ns", "a");
name.Namespace = "new-ns";
Assert.AreEqual("a:root [new-ns]", name.ToString());
}
示例11: QualifiedNameChanged
public void QualifiedNameChanged()
{
QualifiedName name = new QualifiedName("root", "ns", "a");
name.Name = "element";
Assert.AreEqual("a:element [ns]", name.ToString());
}