摘要:
A question that frequently surfaces on the Silverlight forums is the one after a DateTimePicker control. TheSilverlight Toolkithas both a date picker and a time picker, but not the combination of both. The issue tracker of the Toolkit project on Codeplex lists that control among the Top-20 voted fea 阅读全文
posted @ 2012-08-10 23:03
裴银祥的博客园
阅读(662)
评论(0)
推荐(0)
摘要:
如果你看到C#中的“?”问号脑袋里便充满问号,那么这个贴子便是为你而写的。有人说“细节决定成败”,细节就意味着繁琐,像我这样浮躁的人现在都已经习惯了繁琐,如果你还不习惯繁琐的话,那么就把这个贴子当作一次练习机会吧。 在C#中“?”有三种用法。 1、可空类型修饰符(?):引用类型可以使用空引用表示一个不存在的值,而值类型通常不能表示为空,例如:string str=null;是正确的。int i=null;编译器将报错。为了使值类型也可为空,可空类型出现了,可空类型使用可空类型修饰符?来表示,表现形式为T?。例:int?表示是可空的整形,DateTime?表示为可空的时间。T?其实是System 阅读全文
posted @ 2012-08-10 22:05
裴银祥的博客园
阅读(336)
评论(0)
推荐(0)
浙公网安备 33010602011771号