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); }
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); }
public bool Equals(ArrayHash <T> other) { return(Array.ElementsAreEqual(other.Array)); }
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; }