Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing T type int in local window

I can't change this "value" variable from locals or immediate window. Whats wrong? T isn't a int in runtime? Whats wrong?

http://im2.ezgif.com/tmp/ezgif-3735159626.gif

i can't change _value too.I think this is a bug or something?

    class Program
    {
        static void Main(string[] args)
        {
            Just<int> just = new Just<int>();
            just.Try(5);
        }
    }
    class Just<T>
    {
        private T _value;
        public void Try(T value)
        {
            this._value = value;
        }
    }

Beside using this, tried to use instance of Just, worked fine

enter image description here

like image 463
Cevizli Avatar asked Oct 29 '22 18:10

Cevizli


1 Answers

This is a known bug in the expression evaluator. There is a GitHub issue tracking this bug here

like image 100
Patrick Nelson - MSFT Avatar answered Nov 13 '22 03:11

Patrick Nelson - MSFT