erdomke / Innovator.Client

Client library for communicating with Aras Innovator
MIT License
30 stars 16 forks source link

FirstOrNullItem returns null in some cases #31

Closed broderickhyman closed 2 years ago

broderickhyman commented 4 years ago

IEnumerable<IPropertyDefinition>.FirstOrNullItem() will return null instead of a null item Workaround is: IEnumerable<IPropertyDefinition>.FirstOrDefault() ?? Item.GetNullItem<Property>()