Gets an object that can access the mirror type's members with the specified name.
Namespace:
MbUnit.FrameworkAssembly: MbUnit (in MbUnit.dll) Version: 3.3.0.0 (3.3.610.0)
Syntax
| C# |
|---|
public Mirror..::.MemberSet this[ string memberName ] { get; } |
| Visual Basic (Declaration) |
|---|
Public ReadOnly Default Property Item ( _ memberName As String _ ) As Mirror..::.MemberSet |
Parameters
- memberName
- Type: System..::.String
The member name.
Return Value
The member set that represents the mirror type's members with the specified name.
Remarks
If there are no members with the specified name, the member set will be empty and all operations performed on it will fail. If there are multiple members with the specified name (when the name is overloaded), the member set will refer to multiple members. When an operation is performed on the member set, a specific member will chosen from the set or an error will be emitted.
Exceptions
| Exception | Condition |
|---|---|
| System..::.ArgumentNullException | Thrown if memberName is null. |
| MbUnit.Framework..::.MirrorException | Thrown if the mirror represents a null object of unknown type. |
