/// <summary> /// Generate a unique string identifier for the specified node. Do this by asking the navigator for an identifier /// that is unique within the document, and then prepend a document index. /// </summary> public string GenerateId(XPathNavigator navigator) { return(string.Concat("ID", _docOrderCmp.GetDocumentIndex(navigator).ToString(CultureInfo.InvariantCulture), navigator.UniqueId)); }
public string GenerateId(XPathNavigator navigator) { return(string.Create(CultureInfo.InvariantCulture, $"ID{_docOrderCmp.GetDocumentIndex(navigator)}{navigator.UniqueId}")); }