public bool Peek(string fieldName)
{
m_reader.MoveToContent();
if (XmlNodeType.Element != m_reader.NodeType)
{
return false;
}
if (fieldName != m_reader.LocalName)
{
return false;
}
if (m_namespaces.Peek() != m_reader.NamespaceURI)
{
return false;
}
return true;
}
XmlDecoder::Peek ( System.Xml.XmlNodeType nodeType ) : |
/// <summary> /// Updates the attributes from the stream. /// </summary> /// <param name="context">The context for the system being accessed.</param> /// <param name="decoder">The decoder wrapping the stream to read.</param> public override void Update(ISystemContext context, XmlDecoder decoder) { base.Update(context, decoder); decoder.PushNamespace(Namespaces.OpcUaXsd); if (decoder.Peek("Executable")) { Executable = decoder.ReadBoolean("Executable"); } if (decoder.Peek("UserExecutable")) { UserExecutable = decoder.ReadBoolean("UserExecutable"); } decoder.PopNamespace(); }