public PcfMessage[] Send(PcfMessage request) { var messageArray = base.Send(request.GetCommand(), request.GetParameters()); var messageArray2 = new PcfMessage[messageArray.Length]; for (var i = 0; i < messageArray2.Length; i++) { messageArray2[i] = new PcfMessage(messageArray[i]); } return(messageArray2); }
public static bool TryGetStringParameterValue(this PCF.PcfMessage pcfMsg, int parameter, out string value) { try { value = pcfMsg.GetStringParameterValue(parameter); return(true); } catch (PCF.PcfException) { value = null; return(false); } }