The Name
property of the MapNode
class represents a user-specified name for the node. This property allows you to assign a meaningful identifier to the node, which can be useful for organizational purposes or when referencing the node in code.
The Name
property of the MapNode
class represents a user-specified name for the node. This property allows you to assign a meaningful identifier to the node, which can be useful for organizational purposes or when referencing the node in code.
To get or set the name of a MapNode
, use the Name
property. This property is a string
and can be accessed directly on an instance of MapNode
.
// Example of setting and getting the Name property of a MapNode // Create a new MapNode instance MapNode myNode = new MapNode(); // Set the name of the node myNode.Name = "MyCustomNodeName"; // Retrieve the name of the node string nodeName = myNode.Name; // Output the name // Note: Avoid using Console.WriteLine in s&box // Instead, use the appropriate logging or UI display method in your context // Log.Info(nodeName);