1
Answer

CS8601: Possible null reference assignment

Danstan Morre

Danstan Morre

2y
2.8k
1

This is my code

obj.Category = _db.Category.FirstOrDefault(u => u.Id == obj.CategoryId);

it will have CS8601: Possible null reference assignment

how to fix this one or how to avoid this type of warning in visual studio 2022 using the C#10

Answers (1)