Class ClrMethodDefinition
A Flame method that wraps an IL method definition.
Inherited Members
Namespace: Flame.Clr
Assembly: Flame.Clr.dll
Syntax
public class ClrMethodDefinition : IBodyMethod, IMethod, ITypeMember, IGenericMember, IMember
Constructors
| Improve this Doc View SourceClrMethodDefinition(MethodDefinition, ClrTypeDefinition)
Creates a wrapper around an IL method definition.
Declaration
public ClrMethodDefinition(MethodDefinition definition, ClrTypeDefinition parentType)
Parameters
Type | Name | Description |
---|---|---|
Mono.Cecil.MethodDefinition | definition | The definition to wrap in a Flame method. |
ClrTypeDefinition | parentType | The definition's declaring type. |
Properties
| Improve this Doc View SourceAttributes
Gets the member's attributes.
Declaration
public AttributeMap Attributes { get; }
Property Value
Type | Description |
---|---|
AttributeMap |
BaseMethods
Gets the method's base methods.
Declaration
public IReadOnlyList<IMethod> BaseMethods { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<IMethod> |
Body
Gets the method body for this method.
Declaration
public MethodBody Body { get; }
Property Value
Type | Description |
---|---|
MethodBody | A method body. |
Definition
Gets the IL method definition wrapped by this Flame method definition.
Declaration
public MethodDefinition Definition { get; }
Property Value
Type | Description |
---|---|
Mono.Cecil.MethodDefinition | An IL method definition. |
FullName
Gets the member's full name.
Declaration
public QualifiedName FullName { get; }
Property Value
Type | Description |
---|---|
QualifiedName |
GenericParameters
Gets the list of generic parameters for this generic member.
Declaration
public IReadOnlyList<IGenericParameter> GenericParameters { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<IGenericParameter> | The generic parameters. |
IsConstructor
Indicates if this method is a constructor.
Declaration
public bool IsConstructor { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
IsStatic
Tells if this is a static method. Non-static methods take a non-null pointer to their parent type as an implicit first arguments. Static methods do not.
Declaration
public bool IsStatic { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
Name
Gets the member's unqualified name.
Declaration
public UnqualifiedName Name { get; }
Property Value
Type | Description |
---|---|
UnqualifiedName |
Parameters
Gets the method's parameters.
Declaration
public IReadOnlyList<Parameter> Parameters { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IReadOnlyList<Parameter> |
ParentType
Gets the type that defines this method.
Declaration
public ClrTypeDefinition ParentType { get; }
Property Value
Type | Description |
---|---|
ClrTypeDefinition | The type that defines this method. |
ReturnParameter
Gets the method's return parameter.
Declaration
public Parameter ReturnParameter { get; }
Property Value
Type | Description |
---|---|
Parameter |
Methods
| Improve this Doc View SourceToString()
Returns a System.String that represents the current ClrMethodDefinition.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A System.String that represents the current ClrMethodDefinition. |
Overrides
Explicit Interface Implementations
| Improve this Doc View SourceITypeMember.ParentType
Gets the type that defines this member, if any.
Declaration
IType ITypeMember.ParentType { get; }
Returns
Type | Description |
---|---|
IType | The parent type. |