Quantcast
Channel: Error encountered when using lambda to change variable values - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Answer by Zdenek Barta for Error encountered when using lambda to change variable values

$
0
0

read only means you can only read :D so try this:

private static int _f = a + 5;
    public static int f
    {
        get { return _f; }
        set { _f = a + 5; }
    }

Viewing all articles
Browse latest Browse all 2

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>