L. P. with Microsoft C# - Level 5-Quiz-4

  1. Intrinsic attributes is supported by the Common Language Runtime and is directly integrated into the .NET framework.

  2. Assembly attributes are't put in square brackets immediately before the target item in the code.

  3. When you define an attribute, you are actually defining a class, therefore, attributes require a constructor. All attributes are derived from System.Attribute classes.
  4. the following are accomplished using Reflection:
    1. View metadata
    2. Identify Types at runtime
    3. Dynamically call class members

  5. You are in the process of viewing metadata. Type classes is the root object in the Reflection namespace.
  6. MemberInfo encapsulates information about a member type when viewing metadata.
  7. Assembly classes contains two static methods called Load and LoadFrom, which are used to load an assembly.

  8. the following lines of code will correctly load an assembly.

    Assembly a = Assembly.LoadFrom ("AssemblyProj.dll");

  9. The process that uses Reflection to get information about types and members and then make dynamic calls with this information is called Late Binding.

  10. 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
Learning Programming with Microsoft C# - Level 5-4.6
一个自称是超经典的代码,过来瞄下。
All Comments

 No Data Now...

Post Your Comment
^ ^

Top