|
|
|
Re: #14843- Do not rename literals in WinForms generated regions
It's reproducable. Suppose you have private Label commentLabel;
and // // commentLabel // this.commentLabel.AccessibleDescription = null; this.commentLabel.AccessibleName = null; resources.ApplyResources(this.commentLabel, "commentLabel"); this.commentLabel.Font = null; this.commentLabel.Name = "commentLabel"; (the latter is in InitializeComponent). If you change the name to zcommentLabel the initialization will look like // // zcommentLabel // this.zcommentLabel.AccessibleDescription = null; this.zcommentLabel.AccessibleName = null; resources.ApplyResources(this.zcommentLabel, "zcommentLabel"); this.zcommentLabel.Font = null; this.zcommentLabel.Name = "zcommentLabel"; That's cool but resources still have commentLabel.Text key! You should either update resources or don't touch this code at all. The former one is preferable. |
|||||||||||||||||||||||||||||||||||||||||||||||||||
Could you give an example of such code where rename breaks existing semantics?