コード例 #1
0
		internal RuntimeCell GetCell(int key, out RuntimeCellReference cellRef)
		{
			RuntimeCell result = null;
			cellRef = null;
			if (key < m_collection.Count)
			{
				IStorable storable = m_collection[key];
				if (storable != null)
				{
					if (IsCellReference(storable))
					{
						cellRef = (RuntimeCellReference)storable;
						result = cellRef.Value();
					}
					else
					{
						result = (RuntimeCell)storable;
					}
				}
			}
			return result;
		}
コード例 #2
0
        public RuntimeCell GetCell(int key, out RuntimeCellReference cellRef)
        {
            RuntimeCell result = null;

            cellRef = null;
            if (key < this.m_collection.Count)
            {
                IStorable storable = this.m_collection[key];
                if (storable != null)
                {
                    if (this.IsCellReference(storable))
                    {
                        cellRef = (RuntimeCellReference)storable;
                        result  = cellRef.Value();
                    }
                    else
                    {
                        result = (RuntimeCell)storable;
                    }
                }
            }
            return(result);
        }