List<FooBar>? fooList = FooListFactory.GetFooList(); FooBar fooBar = fooList!.Find(f => f.Name=="Bar")!;
FooBar? fooBar = fooList?.Find(f => f.Name=="Bar");