예제 #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(((RowTransforms != null ? RowTransforms.GetHashCode() : 0) * 397) ^ StackIndex);
     }
 }
예제 #2
0
 public TransformStack TrimTop()
 {
     if (StackIndex == 0)
     {
         return(this);
     }
     return(new TransformStack(RowTransforms.Skip(StackIndex), 0));
 }
예제 #3
0
파일: ViewLayout.cs 프로젝트: rfellers/pwiz
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Name != null ? Name.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (ColumnFormats != null ? ColumnFormats.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (RowTransforms != null ? RowTransforms.GetHashCode() : 0);
         return(hashCode);
     }
 }
예제 #4
0
 public TransformStack PushTransform(IRowTransform rowTransform)
 {
     return(new TransformStack(new [] { rowTransform }.Concat(RowTransforms.Skip(StackIndex))
                               .Where(transform => !transform.IsEmpty), 0));
 }