示例#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;
 }