摘要:
Is(is关键字判断类型的兼容性, person is Animal)using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Collections;namespace ConvertTest{ class Program { static void Main(string[] args) { #region//as 和is Person p = new Person(); ... 阅读全文
摘要:
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Collections;namespace ConvertTest{ class Program { static void Main(string[] args) { int i = 20; double d = i; Console.WriteLine(d.ToString()); ... 阅读全文