Repository navigation
Nullability and GetProperty/ReadProperty #4932
|
We've finally moved everything to .Net 10 and turned on nullability. it looks like the definition of |
Replies: 2 comments 2 replies
|
Yes. For a non-nullable property whose value you guarantee during creation and loading, I checked the current source and a verified generator snapshot: The |
|
Like @Arthur031221 said. That is the current approach to suppress the whole NRT warnings. I'm working on a better API for NRT within CSLA itself. |
Yes. For a non-nullable property whose value you guarantee during creation and loading,
GetProperty(PropInfo)!is consistent with CSLA's own generated property code. The annotation onGetProperty<T>andReadProperty<T>isT?, so the compiler cannot infer your application's invariant.I checked the current source and a verified generator snapshot: