public MemoryNode Find(string name) { MemoryNodeCommon common = children.Find(delegate(MemoryNodeCommon n) { return(n.name == name); }); // Can return null, not child found. if (common == null) { return(null); } return(common.versions[common.currentVersion]); }
public MemoryNode(ulong version, string defaultTyped, StreamOptions streamOptions, MemoryNodeCommon common) { this.common = common; this.version = version; }
public MemoryNode(string name, string defaultType, StreamOptions defaultStreamOptions) { common = new MemoryNodeCommon(name, this); defaultTypedStream = new MemoryTypedStream(defaultType, defaultStreamOptions); typedStreams.Add(defaultTypedStream); }