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]);
        }
Example #2
0
 public MemoryNode(ulong version, string defaultTyped, StreamOptions streamOptions, MemoryNodeCommon common)
 {
     this.common  = common;
     this.version = version;
 }
Example #3
0
 public MemoryNode(string name, string defaultType, StreamOptions defaultStreamOptions)
 {
     common             = new MemoryNodeCommon(name, this);
     defaultTypedStream = new MemoryTypedStream(defaultType, defaultStreamOptions);
     typedStreams.Add(defaultTypedStream);
 }