Guest User

Untitled

a guest
Jun 23rd, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.49 KB | None | 0 0
  1. #region public NodeId(uint value, ushort namespaceIndex)
  2. /// <summary>
  3. /// Initializes a guid node identifier with a namespace index.
  4. /// </summary>
  5. /// <remarks>
  6. /// Creates a new NodeId that will use a numeric (unsigned int) for its Id, but also
  7. /// specifies which namespace this node should belong to.
  8. /// </remarks>
  9. /// <param name="value">The new (numeric) Id for the node being created</param>
  10. /// <param name="namespaceIndex">The index of the namespace that this node should belong to</param>
  11. /// <seealso cref="SetNamespaceIndex"/>
  12. public NodeId(uint value, ushort namespaceIndex)
  13. {
  14. m_namespaceIndex = namespaceIndex;
  15. m_identifierType = IdType.Numeric;
  16. m_identifier = value;
  17. }
  18.  
  19. #endregion
  20.  
  21. #region public NodeId(string value, ushort namespaceIndex)
  22. /// <summary>
  23. /// Initializes a string node identifier with a namespace index.
  24. /// </summary>
  25. /// <remarks>
  26. /// Creates a new NodeId that will use a string for its Id, but also
  27. /// specifies if the Id is a URI, and which namespace this node belongs to.
  28. /// </remarks>
  29. /// <param name="value">The new (string) Id for the node being created</param>
  30. /// <param name="namespaceIndex">The index of the namespace that this node belongs to</param>
  31. public NodeId(string value, ushort namespaceIndex)
  32. {
  33. m_namespaceIndex = namespaceIndex;
  34. m_identifierType = IdType.String;
  35. m_identifier = value;
  36. }
  37.  
  38. #endregion
Add Comment
Please, Sign In to add comment