diff options
author | Jb Evain <jb@evain.net> | 2017-01-31 20:39:12 +0300 |
---|---|---|
committer | Jb Evain <jb@evain.net> | 2017-01-31 20:39:12 +0300 |
commit | 0d657ab73f60a39d9e20cf1215034136807ceff9 (patch) | |
tree | b66757fecb8984f9cff6b69ee6293e77d999118d | |
parent | 15292f5ae9540bac10539d1a08f9a73213050b1c (diff) |
Add setter for ExportedType.Scope
-rw-r--r-- | Mono.Cecil/ExportedType.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Mono.Cecil/ExportedType.cs b/Mono.Cecil/ExportedType.cs index fcf456f..8238a0c 100644 --- a/Mono.Cecil/ExportedType.cs +++ b/Mono.Cecil/ExportedType.cs @@ -45,6 +45,14 @@ namespace Mono.Cecil { return scope; } + set { + if (declaring_type != null) { + declaring_type.Scope = value; + return; + } + + scope = value; + } } public ExportedType DeclaringType { |