diff options
author | jbevain <jbevain@gmail.com> | 2011-05-06 20:00:57 +0400 |
---|---|---|
committer | jbevain <jbevain@gmail.com> | 2011-05-06 20:00:57 +0400 |
commit | bd8e003e01bf718407a9e89d446c2469fb28a4c7 (patch) | |
tree | b3b322f27ecd2e5d870b9fa4f60da1264c12a769 /Mono.Cecil | |
parent | 16330acea87330ad90be5d62a93c8d0021993e5a (diff) |
By popular demand, re-add Sequence to Parameter
Diffstat (limited to 'Mono.Cecil')
-rw-r--r-- | Mono.Cecil/ParameterDefinition.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Mono.Cecil/ParameterDefinition.cs b/Mono.Cecil/ParameterDefinition.cs index 9b66b77..8902615 100644 --- a/Mono.Cecil/ParameterDefinition.cs +++ b/Mono.Cecil/ParameterDefinition.cs @@ -49,6 +49,15 @@ namespace Mono.Cecil { get { return method; } } + public int Sequence { + get { + if (method == null) + return -1; + + return method.HasThis ? index + 1 : index; + } + } + public bool HasConstant { get { ResolveConstant (); |