首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > 一种基于文本的文件存储结构信息和加载它从C #代码方便实用。

一种基于文本的文件存储结构信息和加载它从C #代码方便实用。

资 源 简 介

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

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
0.234557s