Bug Report T1225455
Visible to All Users

Add Missing Constructors - Refactoring does not respect naming convention defined for parameters

created a year ago

Steps to reproduce:

  1. Naming convention for parameters should be _PascalCase
  2. Use code:
Visual Basic
Imports 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 Basic
Imports 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 Basic
Imports 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

Answers approved by DevExpress Support

created 10 months ago

We have addressed the issue described in this ticket and will include a fix in our next maintenance update. Should you need to apply our fix prior to official release, you can request a hotfix here.

Important Notes:

  • Hotfixes may be unavailable for Early Access/Beta builds or updates set for release within a week.
  • .NET only: in the NuGet Package Manager, use your personal NuGet feed and check the "Include prerelease" option to view the hotfix package in the "Updates" tab.

    Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

    Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.