'Usage
Parameters
- value
- The System.UInt32 to compare this node to.
This produces the following output (taken from C# example):
Comparing NodeId to uint
Comparing 100 to 100 = [equals] True
Comparing 100 to 100 = [ == ] True
Comparing 100 to 101 = [equals] False
Comparing 100 to 101 = [ == ] False
//create some variables uint id1 = 100, id2=101; NodeId node1; //create our node node1 = new NodeId(id1); //now to compare the node to the ids using a simple comparison and Equals: Utils.LogInfo("Comparing NodeId to uint"); Utils.LogInfo("\tComparing 100 to 100 = [equals] {0}", node1.Equals(id1)); Utils.LogInfo("\tComparing 100 to 100 = [ == ] {0}", node1 == id1); Utils.LogInfo("\tComparing 100 to 101 = [equals] {0}", node1.Equals(id2)); Utils.LogInfo("\tComparing 100 to 101 = [ == ] {0}", node1 == id2);
'create some variables Dim id1 As UInt = 100 Dim id2 As UInt = 102 Dim node1 As NodeId 'create our node node1 = new NodeId(id1) 'now to compare the node to the ids using a simple comparison and Equals: Utils.LogInfo("Comparing NodeId to uint") Utils.LogInfo(" Comparing 100 to 100 = [equals] {0}", node1.Equals(id1)) Utils.LogInfo(" Comparing 100 to 100 = [ = ] {0}", node1 = id1) Utils.LogInfo(" Comparing 100 to 101 = [equals] {0}", node1.Equals(id2)) Utils.LogInfo(" Comparing 100 to 101 = [ = ] {0}", node1 = id2)
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2