zoukankan      html  css  js  c++  java
  • assembly的说明

    Assembly SampleAssembly;
    // Instantiate a target object.
    Int32 Integer1 = new Int32();
    Type Type1;
    // Set the Type instance to the target class type.
    Type1 = Integer1.GetType();
    // Instantiate an Assembly class to the assembly housing the Integer type.  
    SampleAssembly = Assembly.GetAssembly(Integer1.GetType());
    // Display the name of the assembly that is calling the method.
    Console.WriteLine("GetCallingAssembly=" + Assembly.GetCallingAssembly().FullName);
    
    
    输出的是调用函数的程序集名称。
    
    
    Assembly SampleAssembly;
    // Instantiate a target object.
    Int32 Integer1 = new Int32();
    Type Type1;
    // Set the Type instance to the target class type.
    Type1 = Integer1.GetType();
    // Instantiate an Assembly class to the assembly housing the Integer type.  
    SampleAssembly = Assembly.GetAssembly(Integer1.GetType());
    // Display the name of the assembly currently executing
    Console.WriteLine("GetExecutingAssembly=" + Assembly.GetExecutingAssembly().FullName);
    

    当前方法的程序集名称

    Type objType = typeof(System.Array);
    
            // Print the full assembly name.
            Console.WriteLine ("Full assembly name: {0}.", objType.Assembly.FullName.ToString()); 
    
            // Print the qualified assembly name.
            Console.WriteLine ("Qualified assembly name: {0}.", objType.AssemblyQualifiedName.ToString()); 
    
    
    类型定义的程序集名称
    
    
  • 相关阅读:
    对于近期学习上的复习与整理
    ACM的奇计淫巧_输入挂
    hdu2602 DP (01背包)
    hdu 1723 DP/递推
    hdu1428 记忆化搜索(BFS预处理最短路径和+DP+DFS)
    hdu1355
    hdu1331&&hdu1579记忆化搜索(DP+DFS)
    hdu1257 dp(最长上升子序列)
    hdu1208 dp
    hdu 1203 dp(关于概率的```背包?)
  • 原文地址:https://www.cnblogs.com/riskyer/p/3357812.html
Copyright © 2011-2022 走看看