Steps to reproduce:
- Naming convention for parameters should be _PascalCase
- Use code:
Visual BasicImports System
Public Class ConversionException
Inherits Exception
Private m_ExpectedType As Type
Private m_InitialType As Type
Private m_Message As String
Private m_Value As Object
End Class
Expected results:
Visual BasicImports System
Imports System.Runtime.Serialization
Imports System.Security
Public Class ConversionException
Inherits Exception
Private m_ExpectedType As Type
Private m_InitialType As Type
Private m_Message As String
Private m_Value As Object
''' <summary>Initializes a new instance of the <see cref="ConversionException" /> class.</summary>
Sub New()
End Sub
''' <summary>Initializes a new instance of the <see cref="ConversionException" /> class with a specified error message.</summary>
''' <param name="message">The message that describes the error. </param>
Sub New(_Message As String)
MyBase.New(_Message)
End Sub
''' <summary>Initializes a new instance of the <see cref="ConversionException" /> class with a specified error message and a reference to the inner exception that is the cause of this exception.</summary>
''' <param name="_Message">The error message that explains the reason for the exception. </param>
''' <param name="_InnerException">The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. </param>
Sub New(_Message As String, _InnerException As Exception)
MyBase.New(_Message, _InnerException)
End Sub
''' <summary>Initializes a new instance of the <see cref="ConversionException" /> class with serialized data.</summary>
''' <param name="_Info">The <see cref="System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown. </param>
''' <param name="_Context">The <see cref="System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination. </param>
''' <exception cref="System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
''' <exception cref="System.Runtime.Serialization.SerializationException">The class name is null or <see cref="System.Exception.HResult" /> is zero (0). </exception>
<SecuritySafeCritical>
Protected Sub New(_Info As SerializationInfo, _Context As StreamingContext)
MyBase.New(_Info, _Context)
End Sub
End Class
Current results:
Visual BasicImports System
Imports System.Runtime.Serialization
Imports System.Security
Public Class ConversionException
Inherits Exception
Private m_ExpectedType As Type
Private m_InitialType As Type
Private m_Message As String
Private m_Value As Object
''' <summary>Initializes a new instance of the <see cref="ConversionException" /> class.</summary>
Sub New()
End Sub
''' <summary>Initializes a new instance of the <see cref="ConversionException" /> class with a specified error message.</summary>
''' <param name="message">The message that describes the error. </param>
Sub New(message As String)
MyBase.New(message)
End Sub
''' <summary>Initializes a new instance of the <see cref="ConversionException" /> class with a specified error message and a reference to the inner exception that is the cause of this exception.</summary>
''' <param name="message">The error message that explains the reason for the exception. </param>
''' <param name="innerException">The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. </param>
Sub New(message As String, innerException As Exception)
MyBase.New(message, innerException)
End Sub
''' <summary>Initializes a new instance of the <see cref="ConversionException" /> class with serialized data.</summary>
''' <param name="info">The <see cref="System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown. </param>
''' <param name="context">The <see cref="System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination. </param>
''' <exception cref="System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
''' <exception cref="System.Runtime.Serialization.SerializationException">The class name is null or <see cref="System.Exception.HResult" /> is zero (0). </exception>
<SecuritySafeCritical>
Protected Sub New(info As SerializationInfo, context As StreamingContext)
MyBase.New(info, context)
End Sub
End Class