Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/cecil.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJb Evain <jbevain@gmail.com>2012-08-10 17:26:30 +0400
committerJb Evain <jbevain@gmail.com>2012-08-10 17:26:30 +0400
commit245e3cbbbdf4fc4824958d661a68cb1bd1be82f0 (patch)
tree3dbef52407f3202c83036a161710f3195be853a7 /Mono.Cecil/TypeReference.cs
parentaea2ceb687f989670d31db5232c77d089b0124ca (diff)
Let people change the scope of a reference, why not?
Diffstat (limited to 'Mono.Cecil/TypeReference.cs')
-rw-r--r--Mono.Cecil/TypeReference.cs9
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 {