bunq / sdk_csharp

C# SDK for bunq API
MIT License
35 stars 22 forks source link

Update generator to check nullable types with HasValue() #75

Open epels opened 6 years ago

epels commented 6 years ago

Steps to reproduce:

  1. Have a generated type with a nullable field (e.g. MasterCardAction.CardId is an int?)
  2. Check if the field is null in generated code

What should happen:

  1. Checked with myNullableField.HasValue

What happens:

  1. Checked with myNullableField != null