diff options
author | jbevain <jbevain@gmail.com> | 2011-06-13 14:40:40 +0400 |
---|---|---|
committer | jbevain <jbevain@gmail.com> | 2011-06-13 14:40:51 +0400 |
commit | 27ace771b311ebdb9153d6a98999676a5beda7ee (patch) | |
tree | 4399755906a36ff8f28dccb8b08d13edc6e9a50f /Mono.Cecil | |
parent | 90e481c594502333d400226b3d4198dfd26964b2 (diff) |
extract variable
Diffstat (limited to 'Mono.Cecil')
-rw-r--r-- | Mono.Cecil/AssemblyWriter.cs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Mono.Cecil/AssemblyWriter.cs b/Mono.Cecil/AssemblyWriter.cs index f05bf82..96b4d15 100644 --- a/Mono.Cecil/AssemblyWriter.cs +++ b/Mono.Cecil/AssemblyWriter.cs @@ -935,11 +935,13 @@ namespace Mono.Cecil { ? reference.PublicKeyToken : reference.PublicKey; + var version = reference.Version; + var rid = table.AddRow (new AssemblyRefRow ( - (ushort) reference.Version.Major, - (ushort) reference.Version.Minor, - (ushort) reference.Version.Build, - (ushort) reference.Version.Revision, + (ushort) version.Major, + (ushort) version.Minor, + (ushort) version.Build, + (ushort) version.Revision, reference.Attributes, GetBlobIndex (key_or_token), GetStringIndex (reference.Name), |