摘要: 我开始学C#的时候是从控制台程序开始的,现在就温习一下控制台程序。控制台原始代码介绍首先我们新建一个控制台应用程序,新建的过程我就不细说了,建立成功后我们会看到如下代码:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace HelloWorld{ class Pr... 阅读全文
posted @ 2013-04-11 16:29 娴言娴语 阅读(359) 评论(0) 推荐(0)
摘要: typeoftypeof是运算符,获取某一类型的System.Type对象。typeof()的参数只能是int,string,String,自定义类型,且不能是实例。Type t = typeof(int);GetType()方法,获取当前实例的类型。int i = 10;Console.WriteLine(i.GetType());typeof和GetType的联系和区别Typeof()是运... 阅读全文
posted @ 2013-04-11 07:45 娴言娴语 阅读(1202) 评论(0) 推荐(0)