mscorlib(4.0.0.0) API with additions
ReflectionContext.cs
1 namespace System.Reflection
2 {
4  [__DynamicallyInvokable]
5  public abstract class ReflectionContext
6  {
8  [__DynamicallyInvokable]
9  protected ReflectionContext()
10  {
11  }
12 
16  [__DynamicallyInvokable]
17  public abstract Assembly MapAssembly(Assembly assembly);
18 
22  [__DynamicallyInvokable]
23  public abstract TypeInfo MapType(TypeInfo type);
24 
28  [__DynamicallyInvokable]
29  public virtual TypeInfo GetTypeForObject(object value)
30  {
31  if (value == null)
32  {
33  throw new ArgumentNullException("value");
34  }
35  return MapType(value.GetType().GetTypeInfo());
36  }
37  }
38 }
The exception that is thrown when a null reference (Nothing in Visual Basic) is passed to a method th...
abstract TypeInfo MapType(TypeInfo type)
Gets the representation, in this reflection context, of a type represented by an object from another ...
Represents a context that can provide reflection objects.
Represents type declarations for class types, interface types, array types, value types,...
Definition: TypeInfo.cs:11
abstract Assembly MapAssembly(Assembly assembly)
Gets the representation, in this reflection context, of an assembly that is represented by an object ...
Represents an assembly, which is a reusable, versionable, and self-describing building block of a com...
Definition: Assembly.cs:22
virtual TypeInfo GetTypeForObject(object value)
Gets the representation of the type of the specified object in this reflection context.
ReflectionContext()
Initializes a new instance of the T:System.Reflection.ReflectionContext class.