L. P. with Microsoft C# - Level 5-Quiz-4
- Intrinsic attributes is supported by the Common Language Runtime and is directly integrated into the .NET framework.
- Assembly attributes are't put in square brackets immediately before the target item in the code.
- When you define an attribute, you are actually defining a class, therefore, attributes require a constructor. All attributes are derived from System.Attribute classes.
- the following are accomplished using Reflection:
- View metadata
- Identify Types at runtime
- Dynamically call class members
- You are in the process of viewing metadata. Type classes is the root object in the Reflection namespace.
- MemberInfo encapsulates information about a member type when viewing metadata.
- Assembly classes contains two static methods called Load and LoadFrom, which are used to load an assembly.
- the following lines of code will correctly load an assembly.
Assembly a = Assembly.LoadFrom ("AssemblyProj.dll");
- The process that uses Reflection to get information about types and members and then make dynamic calls with this information is called Late Binding.
- The CreateInstance() method is used to create an instance of a type that is reflected by another type. This method is found in Activator classes?
Permalink |
Comments (0) | Hits: 1267 | Time: 23:23:02