C# null coalescing operator returning null

前端 未结 6 2489
小鲜肉
小鲜肉 2021-02-14 10:44

Recently my co-worker showed me a block of code that was not working correctly:

public class SomeClass
{
    private IList _categories;

    publ         


        
6条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-14 11:30

    The null-coalescing operator is not broken. I use it in a similar manner all the time quite successfully. Something else is going on.

提交回复
热议问题