摘要: > typeof null // 要小心!'object'解决办法: 下面的函数可以修复这个问题(只针对这个用例).function getPrimitiveTypeName(x) { var typeName = typeof x; switch(typeName) { case "undefined": case "boolean": case "number": case "string": return typeName; case "object": if ... 阅读全文
posted @ 2012-09-21 16:43 倩影 阅读(135) 评论(0) 推荐(0)
摘要: 1: public class Person 2: { 3: public string Name { get; set; } 4: public int Age { get; set; } 5: } 6: 7: public static class ReferenceAndValue 8: { 9: public static void Demonstration() 10: { 11: Person zerocool = new Person { Name = "ZeroCool", Age = 25... 阅读全文
posted @ 2012-09-11 16:15 倩影 阅读(180) 评论(0) 推荐(0)