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
| Name | Description | |
|---|---|---|
| AddHandler | Overloaded. | |
| 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.) | |
| Invoke | Overloaded. | |
| InvokeAsMirror | Overloaded. | |
| MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| RemoveHandler | Overloaded. | |
| 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
| Name | Description | |
|---|---|---|
| Format | Overloaded. |
Properties
| Name | Description | |
|---|---|---|
| Item | Overloaded. | |
| 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.
|
