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