A mirror uses reflection to provide access to non-public members of an object or type for testing purposes.

The Mirror..::.MemberSet type exposes the following members.

Methods

  NameDescription
AddHandlerOverloaded.
Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType
Gets the Type of the current instance.
(Inherited from Object.)
InvokeOverloaded.
InvokeAsMirrorOverloaded.
MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
RemoveHandlerOverloaded.
ToString
Returns a String that represents the current Object.
(Inherited from Object.)
WithBindingFlags
Returns a new member set that selects members that match the specified binding flags.
WithGenericArgs
Returns a new member set that selects members with the specified generic arguments. This is particularly useful when the member has multiple generic overloads that cannot be resolved automatically.
WithSignature
Returns a new member set that selects members with the specified signature. This is particularly useful when the member is overloaded and cannot be resolved automatically.

Extension Methods

  NameDescription
FormatOverloaded.

Properties

  NameDescription
ItemOverloaded.
MemberInfo
Gets the member info that the member set represents.
NestedType
Gets the nested type that the member set represents.
NestedTypeAsMirror
Gets the nested type that the member set represents as a mirror.
Value
Gets or sets the value of the field or property represented by the member set.
ValueAsMirror
Gets the value of the field or property represented by the member set as a mirror.

See Also