Study your flashcards anywhere!

Download the official Cram app for free >

  • Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off

How to study your flashcards.

Right/Left arrow keys: Navigate between flashcards.right arrow keyleft arrow key

Up/Down arrow keys: Flip the card between the front and back.down keyup key

H key: Show hint (3rd side).h key

A key: Read text to speech.a key


Play button


Play button




Click to flip

11 Cards in this Set

  • Front
  • Back
What is a module?
A module is a portable executable file, such as type.dll or application.exe, consisting of one or more classes and interfaces. There may be multiple namespaces contained in a single module, and a namespace may span multiple modules.
What static method returns the assembly that called the current method?
What static method returns the assembly that started up the current process?
What static method returns the assembly that contains the currently executing code?
How to get type information directly from any object?
Call the GetType method of the object class
How to enumerate type members, including methods, properties, field, events and enumerations?
Use the MemberInfo class
How to enumerate all types in a particular assembly
GetTypes from the assembly class
What are BindingFlags for?
Control over what members to retrieve from a type
How to create a new instance of a Type? Reflection
"Use the Type class and the ConstructorInfo class.
Type myHashTable = myAssembly.GetType(""Syst…Hashtable"");
Type[] args = Type.EmptyTypes
ConstructorInfo constr = myHashTable.GetConstructor(args)"
How to execute arbitrary code for specific instance of a type?
Use the MemberInfo class
Show the difference in invoking a static method and a instance method using the MemberInfo class
"myMethod.Invoke(null, new object[]{""myString""}); // static
myMethod.Invoke(myObject, new object[]{""myString""}); // instance"