You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CodeToView is responsible for converting a users .Designer.cs code into a runtime state for the editor.
Currently the load process is as follows:
Create a CSharpSyntaxTree from the .Designer.cs file
Determine the view base class
Create an empty shell .cs parse tree (i.e. to get InitializeComponent and constructor)
Combine the two partials and compile into a new memory only assembly
Mount an instance in the editor
Apply runtime changes (making things visible, converting Data properties from string to Design etc (see CreateSubControlDesigns)
If a user renames fields manually then the Data property will not match the field name (see #211)
It should however be possible to use the CSharpSyntaxTree to find such assignments where the private field name does not match and either warn or override and take the users new name.
The text was updated successfully, but these errors were encountered:
CodeToView
is responsible for converting a users.Designer.cs
code into a runtime state for the editor.Currently the load process is as follows:
CSharpSyntaxTree
from the .Designer.cs fileInitializeComponent
and constructor)Data
properties fromstring
toDesign
etc (seeCreateSubControlDesigns
)If a user renames fields manually then the
Data
property will not match the field name (see #211)It should however be possible to use the
CSharpSyntaxTree
to find such assignments where the private field name does not match and either warn or override and take the users new name.The text was updated successfully, but these errors were encountered: