资 源 简 介
Primarily used for storing structured information about projects (such as name, namespace, etc.) in files kept with the project source code.
Node files store information in JSON format.
Example node file:
{ "Name": "ExampleNode", "Properties": { "TestProperty": "TestValue", "TestProperty2": "TestValue2" }}
How to load a single node:
```
var scanner = new FileNodeScanner();
string dir = CurrentDirectory;
FileNode node = scanner.ScanDirectory(dir, false);
var value = node.Properties["MyProperty"];
```
How to read an entire node tree:
(this loads all nodes including those in parent directories)
```
var scanner = new FileNodeScanner();
string dir = CurrentDirectory;
FileNode baseNode = scanner.ScanDirectory(dir, true);
var value = baseNode.Nodes["SubNode"].Properties["M
文 件 列 表
FileNodes-src-[2012-11-14--9-17-21]
src
SoftwareMonkeys.FileNodes
FileNodes.node
launch-prepare.sh
src
FileNodes.MonoDevelop.Tests.sln
FileNodes.MonoDevelop.sln
SoftwareMonkeys.FileNodes
ConsoleListener.cs
FileNode.cs
FileNodeLoader.cs
FileNodeSaver.cs
FileNodeScanner.cs
IOutputListener.cs
SoftwareMonkeys.FileNodes.csproj
SoftwareMonkeys.FileNodes.snk