本文整理汇总了C#中System.Runtime.Serialization.XmlReaderDelegator.IsNamespaceUri方法的典型用法代码示例。如果您正苦于以下问题:C# XmlReaderDelegator.IsNamespaceUri方法的具体用法?C# XmlReaderDelegator.IsNamespaceUri怎么用?C# XmlReaderDelegator.IsNamespaceUri使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类System.Runtime.Serialization.XmlReaderDelegator
的用法示例。
在下文中一共展示了XmlReaderDelegator.IsNamespaceUri方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Read
internal void Read(XmlReaderDelegator reader)
{
this.Reset();
while (reader.MoveToNextAttribute())
{
switch (reader.IndexOfLocalName(serializationLocalNames, DictionaryGlobals.SerializationNamespace))
{
case 0:
{
this.ReadId(reader);
continue;
}
case 1:
{
this.ReadArraySize(reader);
continue;
}
case 2:
{
this.ReadRef(reader);
continue;
}
case 3:
{
this.ClrType = reader.Value;
continue;
}
case 4:
{
this.ClrAssembly = reader.Value;
continue;
}
case 5:
{
this.ReadFactoryType(reader);
continue;
}
}
switch (reader.IndexOfLocalName(schemaInstanceLocalNames, DictionaryGlobals.SchemaInstanceNamespace))
{
case 0:
{
this.ReadXsiNil(reader);
continue;
}
case 1:
{
this.ReadXsiType(reader);
continue;
}
}
if (!reader.IsNamespaceUri(DictionaryGlobals.XmlnsNamespace))
{
this.UnrecognizedAttributesFound = true;
}
}
reader.MoveToElement();
}
示例2: Read
internal void Read(XmlReaderDelegator reader)
{
Reset();
while (reader.MoveToNextAttribute())
{
switch (reader.IndexOfLocalName(s_serializationLocalNames, DictionaryGlobals.SerializationNamespace))
{
case 0:
ReadId(reader);
break;
case 1:
ReadArraySize(reader);
break;
case 2:
ReadRef(reader);
break;
case 3:
ClrType = reader.Value;
break;
case 4:
ClrAssembly = reader.Value;
break;
case 5:
ReadFactoryType(reader);
break;
default:
switch (reader.IndexOfLocalName(s_schemaInstanceLocalNames, DictionaryGlobals.SchemaInstanceNamespace))
{
case 0:
ReadXsiNil(reader);
break;
case 1:
ReadXsiType(reader);
break;
default:
if (!reader.IsNamespaceUri(DictionaryGlobals.XmlnsNamespace))
UnrecognizedAttributesFound = true;
break;
}
break;
}
}
reader.MoveToElement();
}