using Hylasoft.Opc.Common; using OpcF = Opc.Ua; namespace Hylasoft.Opc.Ua { /// /// Class with extension methods for OPC UA /// public static class NodeExtensions { /// /// Converts an OPC Foundation node to an Hylasoft OPC UA Node /// /// The node to convert /// the parent node (optional) /// internal static UaNode ToHylaNode(this OpcF.ReferenceDescription node, Node parent = null) { var name = node.DisplayName.ToString(); var nodeId = node.NodeId.ToString(); return new UaNode(name, nodeId, parent); } } }