public static bool Decode(BinaryDecoder decoder, out float value) { value = 0.0f; try { value = decoder.DecodeSingle(); } catch (System.Exception) { return(false); } return(true); }