C# 装箱
2021-06-20 04:06
标签:rgs 拆箱 nbsp using .text ogr [] threading task 具体可看:https://www.cnblogs.com/dabiaoge/p/4112581.html 这里不抄录 C# 装箱 标签:rgs 拆箱 nbsp using .text ogr [] threading task 原文地址:https://www.cnblogs.com/namejr/p/10269188.htmlusing System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
// 装箱
int i = 3;
object io = i;
Console.WriteLine("i:{0},io:{1}", i, io.ToString());
// 拆箱
int j = (int)io;
Console.WriteLine("这是j=" + j);
}
}
}
下一篇:本学期c#总结