-
Notifications
You must be signed in to change notification settings - Fork 0
Context Type
Context representing a single Type instance.
This context is XML-enabled.
This context inherits all properties from TypeContextBase.
Returns:
All attributes attached to the represented type.
Type:
SimpleTypeContext
Returns:
A context representing the BaseType of the type represented by the current context.
Type:
SimpleTypeContext
Returns:
Constructors of the type represented by the current context.
Type:
MethodContext
Parameters:
Name | Type | Description | Default Value |
---|---|---|---|
Filter |
MemberFilter | A filter to determine which constructors to return. Should include "Constructor" in this case. | All |
Sort |
string | Criteria by which the returned constructors will be sorted. | empty string |
Sorting Criteria:
-
AccessModifier
Sorts by access modifier, by default from least to most accessible. -
ParameterCount
Sorts by number of parameters, by default from least to most.
Returns:
Parameters used in the type's Invoke
method, if the type represent by the context is a delegate
.
Otherwise null
, resulting in no output.
Type:
ParameterContext
Returns:
All types inheriting directly from the represented type.
Type:
SimpleTypeContext
Returns:
All values declared in the type, if the represented type is an enum
.
Otherwise null
, resulting in no output.
Type:
EnumValueContext
Returns:
Events declared in the represented type.
Type:
EventContext
Parameters:
Name | Type | Description | Default Value |
---|---|---|---|
Filter |
MemberFilter | A filter to determine which events to return. | All |
Sort |
string | Criteria by which the returned events will be sorted. | empty string |
Returns:
Fields declared in the represented type.
Type:
FieldContext
Parameters:
Name | Type | Description | Default Value |
---|---|---|---|
Filter |
MemberFilter | A filter to determine which field to return. | All |
Sort |
string | Criteria by which the returned fields will be sorted. | empty string |
Returns:
Every type implementing type represented by the context, if that type is an interface
.
Type:
SimpleTypeContext
Parameters:
Name | Type | Description | Default Value |
---|---|---|---|
Sort |
string | Criteria by which the returned events will be sorted. | empty string |
Returns:
All base types preceding the represented type in its inheritance chain, in order.
Type:
SimpleTypeContext
Parameters:
Name | Type | Description | Default Value |
---|---|---|---|
IncludeType |
boolean | Whether to include the current type in the chain. | true |
ExcludeObject |
boolean | Whether to exclude System.Object from the chain. |
false |
Returns:
Methods declared in the represented type.
Type:
MethodContext
Parameters:
Name | Type | Description | Default Value |
---|---|---|---|
Filter |
MemberFilter | A filter to determine which methods to return. | All |
Sort |
string | Criteria by which the returned methods will be sorted. | empty string |
Returns:
Properties declared in the represented type.
Type:
PropertyContext
Parameters:
Name | Type | Description | Default Value |
---|---|---|---|
Filter |
MemberFilter | A filter to determine which properties to return. | All |
Sort |
string | Criteria by which the returned properties will be sorted. | empty string |
The default return value for condition properties in this context is false
.
Returns:
Whether the represented type is decorated with one or multiple attributes.
Returns:
Whether the represented type contains one or multiple constructors.
Parameters:
Name | Type | Description | Default Value |
---|---|---|---|
Filter |
MemberFilter | A filter to determine which constructors are considered when evaluating the condition. | All |
Returns:
Whether the represented type is used as base type by any other (documented) type.
Returns:
Whether the represented type contains one or multiple events.
Parameters:
Name | Type | Description | Default Value |
---|---|---|---|
Filter |
MemberFilter | A filter to determine which events are considered when evaluating the condition. | All |
Returns:
Whether the represented type contains one or multiple fields.
Parameters:
Name | Type | Description | Default Value |
---|---|---|---|
Filter |
MemberFilter | A filter to determine which fields are considered when evaluating the condition. | All |
Returns:
Whether the represented type is an interface and is implemented by any other (documented) types.
Returns:
Whether the represented type implements one or multiple interfaces.
Returns:
Whether the represented type contains one or multiple methods.
Parameters:
Name | Type | Description | Default Value |
---|---|---|---|
Filter |
MemberFilter | A filter to determine which methods are considered when evaluating the condition. | All |
Returns:
Whether the represented type contains one or multiple properties.
Parameters:
Name | Type | Description | Default Value |
---|---|---|---|
Filter |
MemberFilter | A filter to determine which properties are considered when evaluating the condition. | All |