.NET反射相关类型与属性详解
1. 引言
在.NET开发中,反射是一项强大的功能,它允许程序在运行时检查和操作类型、方法、属性等。本文将详细介绍一系列与反射相关的类型和属性,包括它们的用途、构造函数、属性和方法等。
2. 程序集属性相关类型
2.1 AssemblyAlgorithmIdAttribute
该属性允许指定和更改用于对程序集文件进行哈希的算法。
public sealed class AssemblyAlgorithmIdAttribute : Attribute {
// Public Constructors
public AssemblyAlgorithmIdAttribute(System.Configuration.Assemblies.AssemblyHashAlgorithm algorithmId);
public AssemblyAlgorithmIdAttribute(uint algorithmId);
// Public Instance Properties
public uint AlgorithmId { get; }
}
- 继承关系 :System.Object -> System.Attribute -> AssemblyAlgorithmIdAttribute
- 适用范围 :程序集