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