private void TestMethod() { var dp = new ComplexDataPoint(0, 0); var complex_number = dp.Y; _myDataPoints[0] = Enumerable.Range(0, 10).Select(i => new ComplexDataPoint(0, 0)).ToArray(); _myDataPoints[1] = Enumerable.Range(0, 10).Select(i => new DoubleDataPoint(0, 0)).ToArray(); }
// // Summary: // Compares two ComplexDataPoint structures for equality. // // Parameters: // value: // The point to compare to this instance. // // Returns: // true if both ComplexDataPoint structures contain the same ComplexDataPoint.X // and ComplexDataPoint.Y values; otherwise, false. public bool Equals(ComplexDataPoint value) { return(X == value.X && Y == value.Y); }