public void AssignmentMustWorkForRec1() { var t = _.t(new B0()); A0 a0 = t._1; Assert.NotNull(a0); }
public void AssignmentMustWorkForRec15() { var t = _.t(new B0(), new B1(), new B2(), new B3(), new B4(), new B5(), new B6(), new B7(), new B8(), new B9(), new B10(), new B11(), new B12(), new B13(), new B14()); A0 a0 = t._1; A1 a1 = t._2; A2 a2 = t._3; A3 a3 = t._4; A4 a4 = t._5; A5 a5 = t._6; A6 a6 = t._7; A7 a7 = t._8; A8 a8 = t._9; A9 a9 = t._10; A10 a10 = t._11; A11 a11 = t._12; A12 a12 = t._13; A13 a13 = t._14; A14 a14 = t._15; Assert.NotNull(a0); Assert.NotNull(a1); Assert.NotNull(a2); Assert.NotNull(a3); Assert.NotNull(a4); Assert.NotNull(a5); Assert.NotNull(a6); Assert.NotNull(a7); Assert.NotNull(a8); Assert.NotNull(a9); Assert.NotNull(a10); Assert.NotNull(a11); Assert.NotNull(a12); Assert.NotNull(a13); Assert.NotNull(a14); }
public void AssignmentMustWorkForRec2() { var t = _.t(new B0(), new B1()); A0 a0 = t._1; A1 a1 = t._2; Assert.NotNull(a0); Assert.NotNull(a1); }
public override string ToString() { var temp = String.Format("{1}{0}{2,17}{3,16}{4,7}{5,5}{0}{6,5}{0}{7,2}{0}", " ", _correctionType.ToString().ToUpper(), A0.ToString("0.0000000000E+00", CultureInfo.InvariantCulture), A1.ToString("0.000000000E+00", CultureInfo.InvariantCulture), ReferenceTime, ReferenceWeek, SbasType, UtcId); var sb = new StringBuilder(temp); sb.Append(' ', 60 - sb.Length); return(sb.ToString()); }
public void AssignmentMustWorkForRec4() { var t = _.t(new B0(), new B1(), new B2(), new B3()); A0 a0 = t._1; A1 a1 = t._2; A2 a2 = t._3; A3 a3 = t._4; Assert.NotNull(a0); Assert.NotNull(a1); Assert.NotNull(a2); Assert.NotNull(a3); }
public void AssignmentMustWorkForRec23() { var t = _.t(new B0(), new B1(), new B2(), new B3(), new B4(), new B5(), new B6(), new B7(), new B8(), new B9(), new B10(), new B11(), new B12(), new B13(), new B14(), new B15(), new B16(), new B17(), new B18(), new B19(), new B20(), new B21(), new B22()); A0 a0 = t._1; A1 a1 = t._2; A2 a2 = t._3; A3 a3 = t._4; A4 a4 = t._5; A5 a5 = t._6; A6 a6 = t._7; A7 a7 = t._8; A8 a8 = t._9; A9 a9 = t._10; A10 a10 = t._11; A11 a11 = t._12; A12 a12 = t._13; A13 a13 = t._14; A14 a14 = t._15; A15 a15 = t._16; A16 a16 = t._17; A17 a17 = t._18; A18 a18 = t._19; A19 a19 = t._20; A20 a20 = t._21; A21 a21 = t._22; A22 a22 = t._23; Assert.NotNull(a0); Assert.NotNull(a1); Assert.NotNull(a2); Assert.NotNull(a3); Assert.NotNull(a4); Assert.NotNull(a5); Assert.NotNull(a6); Assert.NotNull(a7); Assert.NotNull(a8); Assert.NotNull(a9); Assert.NotNull(a10); Assert.NotNull(a11); Assert.NotNull(a12); Assert.NotNull(a13); Assert.NotNull(a14); Assert.NotNull(a15); Assert.NotNull(a16); Assert.NotNull(a17); Assert.NotNull(a18); Assert.NotNull(a19); Assert.NotNull(a20); Assert.NotNull(a21); Assert.NotNull(a22); }
public bool Equals([AllowNull] Carpet other) { if (other == null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return((Type == other.Type && Type != null && other.Type != null && Type.Equals(other.Type)) && (Visible == other.Visible && Visible != null && other.Visible != null && Visible.Equals(other.Visible)) && (Opacity == other.Opacity && Opacity != null && other.Opacity != null && Opacity.Equals(other.Opacity)) && (Name == other.Name && Name != null && other.Name != null && Name.Equals(other.Name)) && (UId == other.UId && UId != null && other.UId != null && UId.Equals(other.UId)) && (Equals(Ids, other.Ids) || Ids != null && other.Ids != null && Ids.SequenceEqual(other.Ids)) && (Equals(CustomData, other.CustomData) || CustomData != null && other.CustomData != null && CustomData.SequenceEqual(other.CustomData)) && (Meta == other.Meta && Meta != null && other.Meta != null && Meta.Equals(other.Meta)) && (Equals(MetaArray, other.MetaArray) || MetaArray != null && other.MetaArray != null && MetaArray.SequenceEqual(other.MetaArray)) && (Stream == other.Stream && Stream != null && other.Stream != null && Stream.Equals(other.Stream)) && (UiRevision == other.UiRevision && UiRevision != null && other.UiRevision != null && UiRevision.Equals(other.UiRevision)) && (_Carpet == other._Carpet && _Carpet != null && other._Carpet != null && _Carpet.Equals(other._Carpet)) && (Equals(X, other.X) || X != null && other.X != null && X.SequenceEqual(other.X)) && (Equals(Y, other.Y) || Y != null && other.Y != null && Y.SequenceEqual(other.Y)) && (Equals(A, other.A) || A != null && other.A != null && A.SequenceEqual(other.A)) && (A0 == other.A0 && A0 != null && other.A0 != null && A0.Equals(other.A0)) && (DA == other.DA && DA != null && other.DA != null && DA.Equals(other.DA)) && (Equals(B, other.B) || B != null && other.B != null && B.SequenceEqual(other.B)) && (B0 == other.B0 && B0 != null && other.B0 != null && B0.Equals(other.B0)) && (Db == other.Db && Db != null && other.Db != null && Db.Equals(other.Db)) && (CheaterSlope == other.CheaterSlope && CheaterSlope != null && other.CheaterSlope != null && CheaterSlope.Equals(other.CheaterSlope)) && (AAxis == other.AAxis && AAxis != null && other.AAxis != null && AAxis.Equals(other.AAxis)) && (BAxis == other.BAxis && BAxis != null && other.BAxis != null && BAxis.Equals(other.BAxis)) && (Font == other.Font && Font != null && other.Font != null && Font.Equals(other.Font)) && (Color == other.Color && Color != null && other.Color != null && Color.Equals(other.Color)) && (XAxis == other.XAxis && XAxis != null && other.XAxis != null && XAxis.Equals(other.XAxis)) && (YAxis == other.YAxis && YAxis != null && other.YAxis != null && YAxis.Equals(other.YAxis)) && (IdsSrc == other.IdsSrc && IdsSrc != null && other.IdsSrc != null && IdsSrc.Equals(other.IdsSrc)) && (CustomDataSrc == other.CustomDataSrc && CustomDataSrc != null && other.CustomDataSrc != null && CustomDataSrc.Equals(other.CustomDataSrc)) && (MetaSrc == other.MetaSrc && MetaSrc != null && other.MetaSrc != null && MetaSrc.Equals(other.MetaSrc)) && (XSrc == other.XSrc && XSrc != null && other.XSrc != null && XSrc.Equals(other.XSrc)) && (YSrc == other.YSrc && YSrc != null && other.YSrc != null && YSrc.Equals(other.YSrc)) && (ASrc == other.ASrc && ASrc != null && other.ASrc != null && ASrc.Equals(other.ASrc)) && (BSrc == other.BSrc && BSrc != null && other.BSrc != null && BSrc.Equals(other.BSrc))); }
public void SendPacket() { int checksum = 0; if (PacketNum++ > 999) { PacketNum = 0; } //get all the data in string form String num = PacketNum.ToString("D3"); String A0val = A0.ReadRaw().ToString("D4"); String A1val = A1.ReadRaw().ToString("D4"); String A2val = A2.ReadRaw().ToString("D4"); String A3val = A3.ReadRaw().ToString("D4"); String A4val = A4.ReadRaw().ToString("D4"); String A5val = A5.ReadRaw().ToString("D4"); char D0val = D0.Read() ? '1' : '0'; char D1val = D1.Read() ? '1' : '0'; char D2val = D2.Read() ? '1' : '0'; char D3val = D3.Read() ? '1' : '0'; char D4val = D4.Read() ? '1' : '0'; char D5val = D5.Read() ? '1' : '0'; char D6val = D6.Read() ? '1' : '0'; char D7val = D7.Read() ? '1' : '0'; char Btnval = Btn.Read() ? '1' : '0'; //concat the data String packet = num + A0val + A1val + A2val + A3val + A4val + A5val + Btnval + D0val + D1val + D2val + D3val + D4val + D5val + D6val + D7val; //compute checksum foreach (char digit in packet) { checksum += (digit); } checksum %= 1000; //append checksum and protocol frame stuff packet = "###" + packet + checksum + "\r\n"; //convert to byte array for sending byte[] bytepacket = System.Text.Encoding.UTF8.GetBytes(packet); //send the packet _serial.Write(bytepacket, 0, bytepacket.Length); }
public void AssignmentMustWorkForRec6() { var t = _.t(new B0(), new B1(), new B2(), new B3(), new B4(), new B5()); A0 a0 = t._1; A1 a1 = t._2; A2 a2 = t._3; A3 a3 = t._4; A4 a4 = t._5; A5 a5 = t._6; Assert.NotNull(a0); Assert.NotNull(a1); Assert.NotNull(a2); Assert.NotNull(a3); Assert.NotNull(a4); Assert.NotNull(a5); }
public void AssignmentMustWorkForRec9() { var t = _.t(new B0(), new B1(), new B2(), new B3(), new B4(), new B5(), new B6(), new B7(), new B8()); A0 a0 = t._1; A1 a1 = t._2; A2 a2 = t._3; A3 a3 = t._4; A4 a4 = t._5; A5 a5 = t._6; A6 a6 = t._7; A7 a7 = t._8; A8 a8 = t._9; Assert.NotNull(a0); Assert.NotNull(a1); Assert.NotNull(a2); Assert.NotNull(a3); Assert.NotNull(a4); Assert.NotNull(a5); Assert.NotNull(a6); Assert.NotNull(a7); Assert.NotNull(a8); }
/// <inheritdoc /> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; if (Type != null) { hashCode = hashCode * 59 + Type.GetHashCode(); } if (Visible != null) { hashCode = hashCode * 59 + Visible.GetHashCode(); } if (Opacity != null) { hashCode = hashCode * 59 + Opacity.GetHashCode(); } if (Name != null) { hashCode = hashCode * 59 + Name.GetHashCode(); } if (UId != null) { hashCode = hashCode * 59 + UId.GetHashCode(); } if (Ids != null) { hashCode = hashCode * 59 + Ids.GetHashCode(); } if (CustomData != null) { hashCode = hashCode * 59 + CustomData.GetHashCode(); } if (Meta != null) { hashCode = hashCode * 59 + Meta.GetHashCode(); } if (MetaArray != null) { hashCode = hashCode * 59 + MetaArray.GetHashCode(); } if (Stream != null) { hashCode = hashCode * 59 + Stream.GetHashCode(); } if (UiRevision != null) { hashCode = hashCode * 59 + UiRevision.GetHashCode(); } if (_Carpet != null) { hashCode = hashCode * 59 + _Carpet.GetHashCode(); } if (X != null) { hashCode = hashCode * 59 + X.GetHashCode(); } if (Y != null) { hashCode = hashCode * 59 + Y.GetHashCode(); } if (A != null) { hashCode = hashCode * 59 + A.GetHashCode(); } if (A0 != null) { hashCode = hashCode * 59 + A0.GetHashCode(); } if (DA != null) { hashCode = hashCode * 59 + DA.GetHashCode(); } if (B != null) { hashCode = hashCode * 59 + B.GetHashCode(); } if (B0 != null) { hashCode = hashCode * 59 + B0.GetHashCode(); } if (Db != null) { hashCode = hashCode * 59 + Db.GetHashCode(); } if (CheaterSlope != null) { hashCode = hashCode * 59 + CheaterSlope.GetHashCode(); } if (AAxis != null) { hashCode = hashCode * 59 + AAxis.GetHashCode(); } if (BAxis != null) { hashCode = hashCode * 59 + BAxis.GetHashCode(); } if (Font != null) { hashCode = hashCode * 59 + Font.GetHashCode(); } if (Color != null) { hashCode = hashCode * 59 + Color.GetHashCode(); } if (XAxis != null) { hashCode = hashCode * 59 + XAxis.GetHashCode(); } if (YAxis != null) { hashCode = hashCode * 59 + YAxis.GetHashCode(); } if (IdsSrc != null) { hashCode = hashCode * 59 + IdsSrc.GetHashCode(); } if (CustomDataSrc != null) { hashCode = hashCode * 59 + CustomDataSrc.GetHashCode(); } if (MetaSrc != null) { hashCode = hashCode * 59 + MetaSrc.GetHashCode(); } if (XSrc != null) { hashCode = hashCode * 59 + XSrc.GetHashCode(); } if (YSrc != null) { hashCode = hashCode * 59 + YSrc.GetHashCode(); } if (ASrc != null) { hashCode = hashCode * 59 + ASrc.GetHashCode(); } if (BSrc != null) { hashCode = hashCode * 59 + BSrc.GetHashCode(); } return(hashCode); } }
/// <inheritdoc /> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; if (Type != null) { hashCode = hashCode * 59 + Type.GetHashCode(); } if (Visible != null) { hashCode = hashCode * 59 + Visible.GetHashCode(); } if (ShowLegend != null) { hashCode = hashCode * 59 + ShowLegend.GetHashCode(); } if (LegendGroup != null) { hashCode = hashCode * 59 + LegendGroup.GetHashCode(); } if (Opacity != null) { hashCode = hashCode * 59 + Opacity.GetHashCode(); } if (Name != null) { hashCode = hashCode * 59 + Name.GetHashCode(); } if (UId != null) { hashCode = hashCode * 59 + UId.GetHashCode(); } if (Ids != null) { hashCode = hashCode * 59 + Ids.GetHashCode(); } if (CustomData != null) { hashCode = hashCode * 59 + CustomData.GetHashCode(); } if (Meta != null) { hashCode = hashCode * 59 + Meta.GetHashCode(); } if (MetaArray != null) { hashCode = hashCode * 59 + MetaArray.GetHashCode(); } if (Stream != null) { hashCode = hashCode * 59 + Stream.GetHashCode(); } if (UiRevision != null) { hashCode = hashCode * 59 + UiRevision.GetHashCode(); } if (Carpet != null) { hashCode = hashCode * 59 + Carpet.GetHashCode(); } if (Z != null) { hashCode = hashCode * 59 + Z.GetHashCode(); } if (A != null) { hashCode = hashCode * 59 + A.GetHashCode(); } if (A0 != null) { hashCode = hashCode * 59 + A0.GetHashCode(); } if (DA != null) { hashCode = hashCode * 59 + DA.GetHashCode(); } if (B != null) { hashCode = hashCode * 59 + B.GetHashCode(); } if (B0 != null) { hashCode = hashCode * 59 + B0.GetHashCode(); } if (Db != null) { hashCode = hashCode * 59 + Db.GetHashCode(); } if (Text != null) { hashCode = hashCode * 59 + Text.GetHashCode(); } if (HoverText != null) { hashCode = hashCode * 59 + HoverText.GetHashCode(); } if (Transpose != null) { hashCode = hashCode * 59 + Transpose.GetHashCode(); } if (AType != null) { hashCode = hashCode * 59 + AType.GetHashCode(); } if (BType != null) { hashCode = hashCode * 59 + BType.GetHashCode(); } if (FillColor != null) { hashCode = hashCode * 59 + FillColor.GetHashCode(); } if (AutoContour != null) { hashCode = hashCode * 59 + AutoContour.GetHashCode(); } if (NContours != null) { hashCode = hashCode * 59 + NContours.GetHashCode(); } if (Contours != null) { hashCode = hashCode * 59 + Contours.GetHashCode(); } if (Line != null) { hashCode = hashCode * 59 + Line.GetHashCode(); } if (ZAuto != null) { hashCode = hashCode * 59 + ZAuto.GetHashCode(); } if (ZMin != null) { hashCode = hashCode * 59 + ZMin.GetHashCode(); } if (ZMax != null) { hashCode = hashCode * 59 + ZMax.GetHashCode(); } if (ZMid != null) { hashCode = hashCode * 59 + ZMid.GetHashCode(); } if (ColorScale != null) { hashCode = hashCode * 59 + ColorScale.GetHashCode(); } if (AutoColorScale != null) { hashCode = hashCode * 59 + AutoColorScale.GetHashCode(); } if (ReverseScale != null) { hashCode = hashCode * 59 + ReverseScale.GetHashCode(); } if (ShowScale != null) { hashCode = hashCode * 59 + ShowScale.GetHashCode(); } if (ColorBar != null) { hashCode = hashCode * 59 + ColorBar.GetHashCode(); } if (ColorAxis != null) { hashCode = hashCode * 59 + ColorAxis.GetHashCode(); } if (XAxis != null) { hashCode = hashCode * 59 + XAxis.GetHashCode(); } if (YAxis != null) { hashCode = hashCode * 59 + YAxis.GetHashCode(); } if (IdsSrc != null) { hashCode = hashCode * 59 + IdsSrc.GetHashCode(); } if (CustomDataSrc != null) { hashCode = hashCode * 59 + CustomDataSrc.GetHashCode(); } if (MetaSrc != null) { hashCode = hashCode * 59 + MetaSrc.GetHashCode(); } if (ZSrc != null) { hashCode = hashCode * 59 + ZSrc.GetHashCode(); } if (ASrc != null) { hashCode = hashCode * 59 + ASrc.GetHashCode(); } if (BSrc != null) { hashCode = hashCode * 59 + BSrc.GetHashCode(); } if (TextSrc != null) { hashCode = hashCode * 59 + TextSrc.GetHashCode(); } if (HoverTextSrc != null) { hashCode = hashCode * 59 + HoverTextSrc.GetHashCode(); } return(hashCode); } }
/// <inheritdoc /> public bool Equals([AllowNull] ContourCarpet other) { if (other == null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Type == other.Type || Type != null && Type.Equals(other.Type) ) && ( Visible == other.Visible || Visible != null && Visible.Equals(other.Visible) ) && ( ShowLegend == other.ShowLegend || ShowLegend != null && ShowLegend.Equals(other.ShowLegend) ) && ( LegendGroup == other.LegendGroup || LegendGroup != null && LegendGroup.Equals(other.LegendGroup) ) && ( Opacity == other.Opacity || Opacity != null && Opacity.Equals(other.Opacity) ) && ( Name == other.Name || Name != null && Name.Equals(other.Name) ) && ( UId == other.UId || UId != null && UId.Equals(other.UId) ) && ( Equals(Ids, other.Ids) || Ids != null && other.Ids != null && Ids.SequenceEqual(other.Ids) ) && ( Equals(CustomData, other.CustomData) || CustomData != null && other.CustomData != null && CustomData.SequenceEqual(other.CustomData) ) && ( Meta == other.Meta || Meta != null && Meta.Equals(other.Meta) ) && ( Equals(MetaArray, other.MetaArray) || MetaArray != null && other.MetaArray != null && MetaArray.SequenceEqual(other.MetaArray) ) && ( Stream == other.Stream || Stream != null && Stream.Equals(other.Stream) ) && ( UiRevision == other.UiRevision || UiRevision != null && UiRevision.Equals(other.UiRevision) ) && ( Carpet == other.Carpet || Carpet != null && Carpet.Equals(other.Carpet) ) && ( Equals(Z, other.Z) || Z != null && other.Z != null && Z.SequenceEqual(other.Z) ) && ( Equals(A, other.A) || A != null && other.A != null && A.SequenceEqual(other.A) ) && ( A0 == other.A0 || A0 != null && A0.Equals(other.A0) ) && ( DA == other.DA || DA != null && DA.Equals(other.DA) ) && ( Equals(B, other.B) || B != null && other.B != null && B.SequenceEqual(other.B) ) && ( B0 == other.B0 || B0 != null && B0.Equals(other.B0) ) && ( Db == other.Db || Db != null && Db.Equals(other.Db) ) && ( Equals(Text, other.Text) || Text != null && other.Text != null && Text.SequenceEqual(other.Text) ) && ( Equals(HoverText, other.HoverText) || HoverText != null && other.HoverText != null && HoverText.SequenceEqual(other.HoverText) ) && ( Transpose == other.Transpose || Transpose != null && Transpose.Equals(other.Transpose) ) && ( AType == other.AType || AType != null && AType.Equals(other.AType) ) && ( BType == other.BType || BType != null && BType.Equals(other.BType) ) && ( FillColor == other.FillColor || FillColor != null && FillColor.Equals(other.FillColor) ) && ( AutoContour == other.AutoContour || AutoContour != null && AutoContour.Equals(other.AutoContour) ) && ( NContours == other.NContours || NContours != null && NContours.Equals(other.NContours) ) && ( Contours == other.Contours || Contours != null && Contours.Equals(other.Contours) ) && ( Line == other.Line || Line != null && Line.Equals(other.Line) ) && ( ZAuto == other.ZAuto || ZAuto != null && ZAuto.Equals(other.ZAuto) ) && ( ZMin == other.ZMin || ZMin != null && ZMin.Equals(other.ZMin) ) && ( ZMax == other.ZMax || ZMax != null && ZMax.Equals(other.ZMax) ) && ( ZMid == other.ZMid || ZMid != null && ZMid.Equals(other.ZMid) ) && ( ColorScale == other.ColorScale || ColorScale != null && ColorScale.Equals(other.ColorScale) ) && ( AutoColorScale == other.AutoColorScale || AutoColorScale != null && AutoColorScale.Equals(other.AutoColorScale) ) && ( ReverseScale == other.ReverseScale || ReverseScale != null && ReverseScale.Equals(other.ReverseScale) ) && ( ShowScale == other.ShowScale || ShowScale != null && ShowScale.Equals(other.ShowScale) ) && ( ColorBar == other.ColorBar || ColorBar != null && ColorBar.Equals(other.ColorBar) ) && ( ColorAxis == other.ColorAxis || ColorAxis != null && ColorAxis.Equals(other.ColorAxis) ) && ( XAxis == other.XAxis || XAxis != null && XAxis.Equals(other.XAxis) ) && ( YAxis == other.YAxis || YAxis != null && YAxis.Equals(other.YAxis) ) && ( IdsSrc == other.IdsSrc || IdsSrc != null && IdsSrc.Equals(other.IdsSrc) ) && ( CustomDataSrc == other.CustomDataSrc || CustomDataSrc != null && CustomDataSrc.Equals(other.CustomDataSrc) ) && ( MetaSrc == other.MetaSrc || MetaSrc != null && MetaSrc.Equals(other.MetaSrc) ) && ( ZSrc == other.ZSrc || ZSrc != null && ZSrc.Equals(other.ZSrc) ) && ( ASrc == other.ASrc || ASrc != null && ASrc.Equals(other.ASrc) ) && ( BSrc == other.BSrc || BSrc != null && BSrc.Equals(other.BSrc) ) && ( TextSrc == other.TextSrc || TextSrc != null && TextSrc.Equals(other.TextSrc) ) && ( HoverTextSrc == other.HoverTextSrc || HoverTextSrc != null && HoverTextSrc.Equals(other.HoverTextSrc) )); }
public static void Main() { A a = new A0(); a.CheckDerived(); }
private void Meth(A0 a0) { }
public static void m2(this A0 _p0) { }