コード例 #1
0
ファイル: ObjectCacheNode.cs プロジェクト: lenoil98/Mono-D
        public void Set(ObjectCacheNode ch)
        {
            if (ch == null || ch is ObjectRootCacheNode || ch == this)
            {
                throw new ArgumentException("ch and the name must be set and must not be the root node");
            }

            children [ch.Name] = ch;
        }
コード例 #2
0
ファイル: ObjectCacheNode.cs プロジェクト: lenoil98/Mono-D
        public ObjectCacheNode this[ObjectPath path]
        {
            get{
                ObjectCacheNode n = this;

                for (int i = 0; i < path.Length; i++)
                {
                    if ((n = n [path[i]]) == null)
                    {
                        break;
                    }
                }
                return(n);
            }
        }
コード例 #3
0
ファイル: ObjectCacheNode.cs プロジェクト: DinrusGroup/Mono-D
		public void Set(ObjectCacheNode ch)
		{
			if (ch == null || ch is ObjectRootCacheNode || ch == this)
				throw new ArgumentException("ch and the name must be set and must not be the root node");

			children [ch.Name] = ch;
		}