dbc-interface
dbc-interface copied to clipboard
Error parsing .dbc file in the repo
Unable to parse the default file that is found in the repository.


Hi, I got the same exception :( How to solve it ? Thanks
Edit : This is the solution I found, maybe not the best, but it work
/// <summary>
/// The collection of ECUs.
/// </summary>
public IReadOnlyDictionary<string, IDBCECU> ECUs
=> ecus.Select(d => new KeyValuePair<string, IDBCECU>(d.Key, d.Value)).ToDictionary(k => k.Key, k => k.Value);
/// <summary>
/// The collection of DBC Messages.
/// </summary>
public IReadOnlyDictionary<string, IDBCMessage> Messages
=> messages.Select(d => new KeyValuePair<string, IDBCMessage>(d.Key, d.Value)).ToDictionary(k => k.Key, k => k.Value);