diff options
author | Jb Evain <jbevain@gmail.com> | 2012-08-10 17:26:30 +0400 |
---|---|---|
committer | Jb Evain <jbevain@gmail.com> | 2012-08-10 17:26:30 +0400 |
commit | 245e3cbbbdf4fc4824958d661a68cb1bd1be82f0 (patch) | |
tree | 3dbef52407f3202c83036a161710f3195be853a7 /Mono.Cecil/TypeReference.cs | |
parent | aea2ceb687f989670d31db5232c77d089b0124ca (diff) |
Let people change the scope of a reference, why not?
Diffstat (limited to 'Mono.Cecil/TypeReference.cs')
-rw-r--r-- | Mono.Cecil/TypeReference.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Mono.Cecil/TypeReference.cs b/Mono.Cecil/TypeReference.cs index ff28c63..f811b4f 100644 --- a/Mono.Cecil/TypeReference.cs +++ b/Mono.Cecil/TypeReference.cs @@ -147,6 +147,15 @@ namespace Mono.Cecil { return scope; } + set { + var declaring_type = this.DeclaringType; + if (declaring_type != null) { + declaring_type.Scope = value; + return; + } + + scope = value; + } } public bool IsNested { |