Skip to content

parsing enum with .net 4.x #8

@Sedowan

Description

@Sedowan

Dear Dragonlaird,

Thank you for creating this project. While porting the project to my .net 4.x application if stumbled upon an issue parsing the frequency in the SimConnectHelper class (line 716).

SIMCONNECT_PERIOD period = Enum.Parse<SIMCONNECT_PERIOD>(frequency.ToString().ToUpper());

Since the .Parse function has changed, I would like to suggest following fix:

SIMCONNECT_PERIOD period = (SIMCONNECT_PERIOD)Enum.Parse(typeof(SimConnectUpdateFrequency), frequency.ToString().ToUpper());

I hope that helps.

Kind Regards,
Sedowan

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions