Programming Search⌘K

C# errors and diagnostics, page 4 of 11

The error codes and warnings of C#, with the message that each one prints and what causes it. This page has 2,008 cards.

Anonymous methods, lambda expressions, query expressions, and local functions inside structs cannot access instance members of 'this'. Consider copying 'this' to a local variable outside the anonymous method, lambda expression, query expression, or local function and using the local instead. CS1673

Code
CS1673
Severity
error
Message
Anonymous methods, lambda expressions, query expressions, and local functions inside structs cannot access instance members of 'this'. Consider copying 'this' to a local variable outside the anonymous method, lambda expression, query expression, or local function and using the local instead.

Source: github.com. JSON record. This entry is a card. Help write this page.