Share via


Reflection Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Provides information about assemblies and the types defined within them, as well as information about creating, invoking, and accessing type instances at run time.

Inheritance Hierarchy

System. . :: . .Object
  Microsoft.SPOT..::..Reflection

Namespace:  Microsoft.SPOT
Assembly:  Microsoft.SPOT.Native (in Microsoft.SPOT.Native.dll)

Syntax

'Declaration
Public NotInheritable Class Reflection
public static class Reflection
public ref class Reflection abstract sealed
[<AbstractClass>]
[<Sealed>]
type Reflection =  class end
public final class Reflection

The Reflection type exposes the following members.

Methods

  Name Description
Public methodStatic member Deserialize Deserializes a byte array of data into an object of the specified type.
Public methodStatic member GetAssemblies Gets all known assemblies.
Public methodStatic member GetAssemblyFromHash Gets the assembly with the specified hash attribute.
Public methodStatic member GetAssemblyHash Retrieves the hash attribute from a specified assembly.
Public methodStatic member GetAssemblyInfo Get an Reflection..::..AssemblyInfo object from a byte array that represents a specified assembly.
Public methodStatic member GetAssemblyMemoryInfo Retrieves the run-time memory information for type usage in a specified assembly.
Public methodStatic member GetTypeFromHash Gets the type that uses the specified hash attribute.
Public methodStatic member GetTypeHash Gets the hash attribute for a specified type.
Public methodStatic member GetTypesImplementingInterface Gets the Type objects (types) that implement the specified interface.
Public methodStatic member IsTypeLoaded Indicates whether a specified type is loaded.
Public methodStatic member Serialize Serializes an object of the specified type to a byte array of data.

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.SPOT Namespace