예제 #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(((ColumnLetter != null ? ColumnLetter.GetHashCode() : 0) * 397) ^ RowNumber.GetHashCode());
     }
 }
예제 #2
0
 private bool Equals(ColumnLetter other)
 {
     return(FirstLetter.Equals(other.FirstLetter) && SecondLetter.Equals(other.SecondLetter));
 }
예제 #3
0
 internal string ToCellName()
 {
     return(ColumnLetter.ToColumnName() + RowNumber);
 }
예제 #4
0
 public override string ToString()
 {
     return(string.Format("ColumnLetter: {0}, RowNumber: {1}", ColumnLetter.ToColumnName(), RowNumber));
 }
예제 #5
0
 public ExcelCellName(ushort column, ushort row)
 {
     ColumnLetter = ColumnLetter.FromColumnNumber(column);
     RowNumber    = row;
 }
예제 #6
0
 public ExcelCellName(ColumnLetter columnLetter, ushort rowNumber)
 {
     ColumnLetter = columnLetter;
     RowNumber    = rowNumber;
 }