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