-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
VB -> C#: Explicitly qualified global names not translated #375
Comments
The general case of this is supposed to be handled by |
* #375 Need type-promoted references to be fixed in C# * Generate a property/field for each form in the project * Add merged declarations to the csproj Fuller implementation of property: [EditorBrowsable(EditorBrowsableState.Never)] public WinformsDesignerTest m_WinformsDesignerTest; public WinformsDesignerTest WinformsDesignerTest { [DebuggerHidden] get { this.m_WinformsDesignerTest = MyProject.MyForms.Create__Instance__<WinformsDesignerTest>(this.m_WinformsDesignerTest); return this.m_WinformsDesignerTest; } [DebuggerHidden] set { if (value == this.m_WinformsDesignerTest) return; if (value != null) throw new ArgumentException("Property can only be set to Nothing"); this.Dispose__Instance__<WinformsDesignerTest>(ref this.m_WinformsDesignerTest); } } There's a similar patter for generating web services
@GrahamTheCoder are you actively working on this? If not, I'll take a shot at it tomorrow. |
Sorry I probably should have unassigned myself while I was away - just got back. I was looking at it briefly yesterday. I'll push my progress and/or unassign myself by tomorrow. |
I didn't get around to spending any more time on this, though a few related tidyups went into #406. In Over to you |
For names which can be used globally, eg.
Timer
,Now
,Len
, etc, VB allows you to explicitly qualify them as eg.Microsoft.VisualBasic.Timer
. The actual symbol is elsewhere, eg.Microsoft.VisualBasic.DateAndTime.Timer
. This is not converted correctly.Input code
Erroneous output
Expected output
Details
Error:
Version: master @ 3ffc597
The text was updated successfully, but these errors were encountered: