dbc-interface icon indicating copy to clipboard operation
dbc-interface copied to clipboard

Error parsing .dbc file in the repo

Open FlYnN91 opened this issue 6 years ago • 2 comments

Unable to parse the default file that is found in the repository.

image

FlYnN91 avatar Apr 01 '19 15:04 FlYnN91

image

FlYnN91 avatar Apr 01 '19 15:04 FlYnN91

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);

Pi57 avatar Jun 21 '21 09:06 Pi57