Fork me on GitHub
摘要: 在XAML中为属性赋值1、使用Attribute=value形式2、使用属性标签的形式 private void Show_Click(object sender, RoutedEventArgs e) { Animal animal =(Animal)this.FindResource("animal"); MessageBox.Show(animal.newAnimal.name); }这时提示的是Animal这个类不支持从String进行转换,那么使用TypeConverter类将XAM... 阅读全文
posted @ 2013-10-19 16:12 种花生的读书人 阅读(168) 评论(0) 推荐(0)
摘要: 1、添加引用:System.Numerics.dll2、添加命名空间:using System.Numerics;3、实例: 3.1判断一个数字是不是质数 static void Main(string[] args) { Console.WriteLine("请输入一个很大的数字:"); string bigNumber = Console.ReadLine(); BigInteger bigInteger = BigInteger.Parse(bigNumber); boo... 阅读全文
posted @ 2013-10-19 14:29 种花生的读书人 阅读(2969) 评论(0) 推荐(0)

该博客仅作为记录笔记,转载随意