本文整理匯總了C#中System.Xml.XmlDictionaryString.ToUTF8方法的典型用法代碼示例。如果您正苦於以下問題:C# XmlDictionaryString.ToUTF8方法的具體用法?C# XmlDictionaryString.ToUTF8怎麽用?C# XmlDictionaryString.ToUTF8使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類System.Xml.XmlDictionaryString
的用法示例。
在下文中一共展示了XmlDictionaryString.ToUTF8方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: Equals2
private bool Equals2(XmlDictionaryString xmlString2)
{
switch (this.type)
{
case StringHandleType.Dictionary:
return this.bufferReader.Equals2(this.key, xmlString2);
case StringHandleType.UTF8:
return this.bufferReader.Equals2(this.offset, this.length, xmlString2.ToUTF8());
}
return (this.GetString() == xmlString2.Value);
}
示例2: Equals2
bool Equals2(XmlDictionaryString xmlString2)
{
StringHandleType type = this.type;
if (type == StringHandleType.Dictionary)
return bufferReader.Equals2(this.key, xmlString2);
if (type == StringHandleType.UTF8)
return bufferReader.Equals2(this.offset, this.length, xmlString2.ToUTF8());
Fx.Assert(type == StringHandleType.EscapedUTF8 || type == StringHandleType.ConstString, "");
return GetString() == xmlString2.Value;
}
示例3: Equals2
private bool Equals2(XmlDictionaryString xmlString2)
{
StringHandleType type = _type;
if (type == StringHandleType.Dictionary)
return _bufferReader.Equals2(_key, xmlString2);
if (type == StringHandleType.UTF8)
return _bufferReader.Equals2(_offset, _length, xmlString2.ToUTF8());
DiagnosticUtility.DebugAssert(type == StringHandleType.EscapedUTF8 || type == StringHandleType.ConstString, "");
return GetString() == xmlString2.Value;
}