| Start |
|---|
| What is an Assembly? Assemblies are the building block of any Common Language Runtime (CLR) (opens new window) application. Every type you define, together with its methods, properties and their bytecode, is compiled and packaged inside an Assembly. Assemblies are self-documenting: they do not only contain types, methods and their IL code, but also the Metadata necessary to inspect and consume them, both at compile and runtime: Assemblies have names which describes their full, unique identity: If this name includes a |
Compare two objects with reflection Note: this example do a field based comparasion (ignore static fields and properties) for simplicity |
| How to create an object of T using Reflection Using the default constructor Using parameterized constructor |
| Creating Object and setting properties using reflection Lets say we have a class to set |
| Getting an attribute of an enum with reflection (and caching it) Attributes can be useful for denoting metadata on enums. Getting the value of this can be slow, so it is important to cache results. |
Read Article
https://develop.horje.com/learn/1434/reference