SenseNet.Services.ContentStore.ContentStoreService.GetNodeId C# (CSharp) Method

GetNodeId() private static method

private static GetNodeId ( string nodeIdOrPath ) : int
nodeIdOrPath string
return int
        private static int GetNodeId(string nodeIdOrPath)
        {
            int nodeId;
            if (Int32.TryParse(nodeIdOrPath, out nodeId))
                return nodeId;
            return NodeHead.Get(nodeIdOrPath).Id;
        }