public override string ToString() { var textBuilder = new StringBuilder(); using (var formatter = new ObjectFormatter(textBuilder, this)) { formatter.Append(DeviceAddress, nameof(DeviceAddress)); formatter.Append(InputKeys, nameof(InputKeys)); formatter.Append(SensorTime, nameof(SensorTime)); } return(textBuilder.ToString()); }
public override string ToString() { var textBuilder = new StringBuilder(); using (var formatter = new ObjectFormatter(textBuilder, this)) { formatter.Append(Grade, nameof(Grade)); formatter.Append(Type, nameof(Type)); formatter.Append(InspectorName, nameof(InspectorName)); formatter.Append(RingName, nameof(RingName)); if (StandardCourseTime != null) { formatter.Append(StandardCourseTime.Value.TotalSeconds, nameof(StandardCourseTime)); } if (MaximumCourseTime != null) { formatter.Append(MaximumCourseTime.Value.TotalSeconds, nameof(MaximumCourseTime)); } formatter.Append(TrackLengthInMeters, nameof(TrackLengthInMeters)); } return(textBuilder.ToString()); }
public override string ToString() { var textBuilder = new StringBuilder(); using (var formatter = new ObjectFormatter(textBuilder, this)) { formatter.Append(DeviceAddress, nameof(DeviceAddress)); formatter.Append(IsInNetwork, nameof(IsInNetwork)); formatter.Append(Capabilities, nameof(Capabilities)); formatter.Append(Roles, nameof(Roles)); formatter.Append(SignalStrength, nameof(SignalStrength)); formatter.Append(BatteryStatus, nameof(BatteryStatus)); formatter.Append(IsAligned, nameof(IsAligned)); formatter.Append(ClockSynchronization, nameof(ClockSynchronization)); formatter.Append(HasVersionMismatch, nameof(HasVersionMismatch)); } return(textBuilder.ToString()); }
public override string ToString() { var textBuilder = new StringBuilder(); using (var formatter = new ObjectFormatter(textBuilder, this)) { formatter.Append(CurrentCompetitorNumber, nameof(CurrentCompetitorNumber)); formatter.Append(NextCompetitorNumber, nameof(NextCompetitorNumber)); formatter.Append(StartPrimaryTimer, nameof(StartPrimaryTimer)); formatter.Append(PrimaryTimerValue, nameof(PrimaryTimerValue)); formatter.Append(SecondaryTimerValue, nameof(SecondaryTimerValue)); formatter.Append(CurrentFaultCount, nameof(CurrentFaultCount)); formatter.Append(CurrentRefusalCount, nameof(CurrentRefusalCount)); formatter.Append(CurrentIsEliminated, nameof(CurrentIsEliminated)); formatter.Append(PreviousPlacement, nameof(PreviousPlacement)); } return(textBuilder.ToString()); }
public override string ToString() { var textBuilder = new StringBuilder(); using (var formatter = new ObjectFormatter(textBuilder, this)) { formatter.Append(() => Grade, () => Grade); formatter.Append(() => Type, () => Type); formatter.Append(() => InspectorName, () => InspectorName); formatter.Append(() => RingName, () => RingName); if (StandardCourseTime != null) { formatter.Append(() => StandardCourseTime.Value.TotalSeconds, () => StandardCourseTime); } if (MaximumCourseTime != null) { formatter.Append(() => MaximumCourseTime.Value.TotalSeconds, () => MaximumCourseTime); } formatter.Append(() => TrackLengthInMeters, () => TrackLengthInMeters); } return textBuilder.ToString(); }