public bool ContainsColumn(LineType line, ColumnType column)
        {
            OdmpSparseDictionaryMatrixRow <LineType, ColumnType, T> dictionaryint = null;

            if (!this.lines.TryGetValue(line, out dictionaryint))
            {
                return(false);
            }
            else
            {
                return(dictionaryint.LineElements.ContainsKey(column));
            }
        }
 public IOdmpMatrixRow <LineType, ColumnType, T> this[LineType line]
 {
     get
     {
         OdmpSparseDictionaryMatrixRow <LineType, ColumnType, T> result = null;
         if (!this.lines.TryGetValue(line, out result))
         {
             throw new OdmpProblemException("int doesn't exist.");
         }
         else
         {
             return(result);
         }
     }
 }
        public T this[LineType line, ColumnType column]
        {
            get
            {
                OdmpSparseDictionaryMatrixRow <LineType, ColumnType, T> dictionaryint = null;
                if (!this.lines.TryGetValue(line, out dictionaryint))
                {
                    return(this.defaultValue);
                }
                else
                {
                    T result = default(T);
                    if (!dictionaryint.LineElements.TryGetValue(column, out result))
                    {
                        throw new OdmpProblemException("Line doesn't exist in specified line.");
                    }

                    return(result);
                }
            }
            set
            {
                OdmpSparseDictionaryMatrixRow <LineType, ColumnType, T> dictionaryint = null;
                if (this.lines.TryGetValue(line, out dictionaryint))
                {
                    if (dictionaryint.LineElements.ContainsKey(column))
                    {
                        dictionaryint.LineElements[column] = value;
                    }
                    else
                    {
                        dictionaryint.LineElements.Add(column, value);
                    }
                }
                else
                {
                    dictionaryint = new OdmpSparseDictionaryMatrixRow <LineType, ColumnType, T>(line, this.columnsComparer);
                    this.lines.Add(line, dictionaryint);
                    dictionaryint.LineElements.Add(column, value);
                }
            }
        }