Boxing.BoxingTests.UnBoxing C# (CSharp) Method

UnBoxing() public method

public UnBoxing ( ) : void
return void
        public void UnBoxing()
        {
            Object integer = 5;
            int Object = (int)integer; //This is known as unboxing, we create a local var with the value of Object

            Assert.IsInstanceOfType(Object, typeof(object));
        }
    }