L
Lance
What is the fastest way to determine if two arrays that
contain ValueTypes are equal? For example, lets say I
have the following:
Dim pt1 as New Drawing.Point(1, 2)
Dim pt2 as New Drawing.Point(2, 3)
Dim pt3 as New Drawing.Point(3, 4)
Dim pt4 as New Drawing.Point(4, 5)
Dim A() as Drawing.Point = {pt1, pt2, pt3}
Dim B() as Drawing.Point = {pt1, pt2, pt3}
Dim C() as Drawing.Point = {pt2, pt3, pt4}
Dim D() as Drawing.Point = {pt3, pt2, pt1}
What is the fastest way to determine that B equals A but
that C and D do not equal A? The only way I know is to
loop through the arrays and test each member (e.g.,
Drawing.Point.op_Equality(A(i), B(i)), but it seems like
there must be a better way.
Thanks for any help!
contain ValueTypes are equal? For example, lets say I
have the following:
Dim pt1 as New Drawing.Point(1, 2)
Dim pt2 as New Drawing.Point(2, 3)
Dim pt3 as New Drawing.Point(3, 4)
Dim pt4 as New Drawing.Point(4, 5)
Dim A() as Drawing.Point = {pt1, pt2, pt3}
Dim B() as Drawing.Point = {pt1, pt2, pt3}
Dim C() as Drawing.Point = {pt2, pt3, pt4}
Dim D() as Drawing.Point = {pt3, pt2, pt1}
What is the fastest way to determine that B equals A but
that C and D do not equal A? The only way I know is to
loop through the arrays and test each member (e.g.,
Drawing.Point.op_Equality(A(i), B(i)), but it seems like
there must be a better way.
Thanks for any help!