protected override BaseInstanceState FindChild(
ISystemContext context,
QualifiedName browseName,
bool createOrReplace,
BaseInstanceState replacement)
{
if (QualifiedName.IsNull(browseName))
{
return null;
}
BaseInstanceState instance = null;
switch (browseName.Name)
{
case Opc.Ua.Plc.BrowseNames.Body:
{
if (createOrReplace)
{
if (Body == null)
{
if (replacement == null)
{
Body = new BaseDataVariableState<XmlElement>(this);
}
else
{
Body = (BaseDataVariableState<XmlElement>)replacement;
}
}
}
instance = Body;
break;
}
}
if (instance != null)
{
return instance;
}
return base.FindChild(context, browseName, createOrReplace, replacement);
}