/// <summary> Reads the current binary argument as a double value. </summary> /// <returns> The double value. </returns> public Double ReadBinDoubleArg() { if (CommunicationManager == null) { throw new InvalidOperationException("CommunicationManager was not set for command."); } if (Next()) { if (CommunicationManager.BoardType == BoardType.Bit16) { var current = BinaryConverter.ToFloat(CmdArgs[_parameter]); if (current != null) { _dumped = true; return((double)current); } } else { var current = BinaryConverter.ToDouble(CmdArgs[_parameter]); if (current != null) { _dumped = true; return((double)current); } } } return(0); }
/// <summary> Reads the current binary argument as a double value. </summary> /// <returns> The double value. </returns> public Double ReadBinDoubleArg() { if (Next()) { if (BoardType == BoardType.Bit16) { var current = BinaryConverter.ToFloat(_arguments[_parameter]); if (current != null) { _dumped = true; return((double)current); } } else { var current = BinaryConverter.ToDouble(_arguments[_parameter]); if (current != null) { _dumped = true; return((double)current); } } } return(0); }
/// <summary> Reads the current binary argument as a double value. </summary> /// <returns> The double value. </returns> public Double ReadBinDoubleArg() { if (Next()) { var current = BinaryConverter.ToDouble(_arguments[_parameter]); if (current != null) { _dumped = true; return((double)current); } } return(0); }