# SerializeToBytes Method Serializes an object to a byte array. ## Definition **Namespace:** CapyKit.Helpers **Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.2 **C#** ``` C# public static byte[] SerializeToBytes( Object obj ) ``` **F#** ``` F# static member SerializeToBytes : obj : Object -> byte[] ``` #### Parameters