diff options
Diffstat (limited to 'src/mscorlib/src/System/Reflection/Emit/SignatureHelper.cs')
-rw-r--r-- | src/mscorlib/src/System/Reflection/Emit/SignatureHelper.cs | 44 |
1 files changed, 5 insertions, 39 deletions
diff --git a/src/mscorlib/src/System/Reflection/Emit/SignatureHelper.cs b/src/mscorlib/src/System/Reflection/Emit/SignatureHelper.cs index c40035bc40..b43abcb51c 100644 --- a/src/mscorlib/src/System/Reflection/Emit/SignatureHelper.cs +++ b/src/mscorlib/src/System/Reflection/Emit/SignatureHelper.cs @@ -14,12 +14,8 @@ namespace System.Reflection.Emit using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; - using System.Security.Permissions; - [ClassInterface(ClassInterfaceType.None)] - [ComDefaultInterface(typeof(_SignatureHelper))] -[System.Runtime.InteropServices.ComVisible(true)] - public sealed class SignatureHelper : _SignatureHelper + public sealed class SignatureHelper { #region Consts Fields private const int NO_SIZE_IN_SIG = -1; @@ -186,15 +182,15 @@ namespace System.Reflection.Emit return sigHelp; } - internal static SignatureHelper GetTypeSigToken(Module mod, Type type) + internal static SignatureHelper GetTypeSigToken(Module module, Type type) { - if (mod == null) - throw new ArgumentNullException("module"); + if (module == null) + throw new ArgumentNullException(nameof(module)); if (type == null) throw new ArgumentNullException(nameof(type)); - return new SignatureHelper(mod, type); + return new SignatureHelper(module, type); } #endregion @@ -518,36 +514,6 @@ namespace System.Reflection.Emit } } - - private void AddData(uint data) - { - if (m_currSig + 4 > m_signature.Length) - { - m_signature = ExpandArray(m_signature); - } - - m_signature[m_currSig++] = (byte)((data) & 0xFF); - m_signature[m_currSig++] = (byte)((data>>8) & 0xFF); - m_signature[m_currSig++] = (byte)((data>>16) & 0xFF); - m_signature[m_currSig++] = (byte)((data>>24) & 0xFF); - } - - private void AddData(ulong data) - { - if (m_currSig + 8 > m_signature.Length) - { - m_signature = ExpandArray(m_signature); - } - - m_signature[m_currSig++] = (byte)((data) & 0xFF); - m_signature[m_currSig++] = (byte)((data>>8) & 0xFF); - m_signature[m_currSig++] = (byte)((data>>16) & 0xFF); - m_signature[m_currSig++] = (byte)((data>>24) & 0xFF); - m_signature[m_currSig++] = (byte)((data>>32) & 0xFF); - m_signature[m_currSig++] = (byte)((data>>40) & 0xFF); - m_signature[m_currSig++] = (byte)((data>>48) & 0xFF); - m_signature[m_currSig++] = (byte)((data>>56) & 0xFF); - } private void AddElementType(CorElementType cvt) { |