⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ex-18-03

📁 Programming Csharp Source Code(代码) Programming Csharp Source Code
💻
字号:
// Example 18-03: Reflecting on an assembly

namespace Programming_CSharp
{
    using System;
    using System.Reflection;

    public class Tester
    {
        public static void Main()
        {
            // what is in the assembly
            Assembly a = Assembly.Load("Mscorlib.dll");
            Type[] types = a.GetTypes();
            foreach(Type t in types)
            {
                    Console.WriteLine("Type is {0}", t);
            } 
            Console.WriteLine(
               "{0} types found", types.Length);
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -