问题在下图中,另外在图后我附上代码,供大家调试..
using System;
class Person
{
public string Name{get;set;}
}
class Student : Person
{
//public string SchoolName { get; set; }
}
class Test
{
static void Main()
{
//Person p = new Person { Name = "Jim" };
//Student s = (Student)p;
//Console.WriteLine(s.Name);
object t = 2;
int i=(int)t;
Console.WriteLine(i);
}
}
12 回答
弑天下
TA贡献1818条经验 获得超8个赞
@焚寂: 我只看到这些:
public struct Int32 : IComparable, IFormattable, IConvertible, IComparable, IEquatable
- 12 回答
- 0 关注
- 538 浏览
添加回答
举报
0/150
提交
取消