Current filter:
                                You should refresh the page.
                                0
                                  • The below snippet will report two incorrect "Undeclared Element" code issues:

                                    1) .Sum() is undeclared
                                    2) k.SomeProperty is undeclared

                                       public class Bugs
                                        {
                                            public void Bug()
                                            {
                                                new List<Klass>().Sum(k => k.SomeProperty);
                                            }
                                        }

                                        public class Klass
                                        {
                                            public int? SomeProperty { get; set; }
                                        }

                                You must  log in  or  register  to leave an answer

                                Is your intention to post an answer to your own question?

                                • If so, then proceed.
                                • If you simply wanted to post additional information, ask for further clarification, or to just say "Thanks!", please click Leave a Comment.
                                • If you wish to edit your original question, please use the Edit button in the Toolbox at the top right corner of that entry.