How can i define a class to deserialze binary file
<p>I would like to know how can i define a class for a binary file which contains objects with float array of size 19.</p>

<p>please see the attached picture of how data looks like in Hex Editor Neo. when displayed as float</p>

<p><a href="https://i.stack.imgur.com/hIhzN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hIhzN.png" alt="enter image description here"></a></p>

<p>i have tried following but no luck. please tell what i am doing wrong here.</p>

<pre><code>  [ProtoContract]
public class ChannelData
{
    [ProtoMember(1)]
    public List&lt;float&gt; array = new List&lt;float&gt;(19);
}

using (var file = File.OpenRead("0.cnl"))
{
  ChannelData newchannel = Serializer.Deserialize&lt;ChannelData&gt;(file);
}
</code></pre>

<p>I am using protobuff for deserialize. Thankyou!</p>

<p>that binary file is not serialized using any binary serializer its raw file.
so i think it can not be deserialize using any deserializer? may be need to do with BitConverter but have no idea..</p>