예제 #1
0
        public IArrayType GetArrayType(IType elementType, int rank)
        {
            ArrayHash  key    = new ArrayHash(elementType, rank);
            IArrayType entity = (IArrayType)_arrayCache[key];

            if (null == entity)
            {
                entity = new ArrayType(this, elementType, rank);
                _arrayCache.Add(key, entity);
            }
            return(entity);
        }
예제 #2
0
        public IArrayType GetArrayType(IType elementType, int rank)
        {
            ArrayHash  key = new ArrayHash(elementType, rank);
            IArrayType tag = (IArrayType)_arrayCache[key];

            if (null == tag)
            {
                tag = new ArrayType(this, elementType, rank);
                _arrayCache.Add(key, tag);
            }
            return(tag);
        }
예제 #3
0
 public bool Equals(ArrayHash <T> other)
 {
     return(Array.ElementsAreEqual(other.Array));
 }
예제 #4
0
 public IArrayType GetArrayType(IType elementType, int rank)
 {
     ArrayHash key = new ArrayHash(elementType, rank);
     IArrayType entity = (IArrayType)_arrayCache[key];
     if (null == entity)
     {
         entity = new ArrayType(this, elementType, rank);
         _arrayCache.Add(key, entity);
     }
     return entity;
 }