public void WriteData(AmfWriter writer, object obj) { writer.WriteMarker(Amf3TypeMarkers.Double); writer.WriteAmf3Double(Convert.ToDouble(obj)); }