Hi, everyone
I started practicing writing a class that inherits from System.Windows.Forms.Form . In the process of writing the class code, I found a problem. When I type “This.”, I see a list of members as shown below:
My question is, why doesn't it show all the members of System.Windows.Forms.Form, such as its properties, methods, etc.?
Is this a bug?
Questions about object members lists
Questions about object members lists
简单的东西重复做,你能成为专家;重复的东西用心做,你能成为赢家!
Re: Questions about object members lists
What happens, if you select "All Methods"?
Regards
Karl
(on Win8.1/64, Xide32 2.20, X#2.20.0.3)
Karl
(on Win8.1/64, Xide32 2.20, X#2.20.0.3)
Re: Questions about object members lists
Hi, FFF
A screenshot is showing all.
I mean this list doesn't show all the members. If I need to call a method or assign a value to a property, I have to consult the documentation.
A screenshot is showing all.
I mean this list doesn't show all the members. If I need to call a method or assign a value to a property, I have to consult the documentation.
简单的东西重复做,你能成为专家;重复的东西用心做,你能成为赢家!
Re: Questions about object members lists
Hi xinjie,
It's a bug, will open a ticket for this to be fixed.
I think those related problems come from the fact that in VFP all classes eventually inherit from a base "Custom" class, while in .Net all classes inherit from System.Object. In X# we need to support both cases for the VFP dialect and the DEFINE CLASS syntax, and it becomes complicated.
If you use the standard X# base syntax for defining a class (CLASS name INHERIT type) then memeber completion works as expected, but I am not suggesting that you should change your code, the problem in member completion needs to be fixed. Maybe until it's fixed, you can temporarily use the standard syntax though.
It's a bug, will open a ticket for this to be fixed.
I think those related problems come from the fact that in VFP all classes eventually inherit from a base "Custom" class, while in .Net all classes inherit from System.Object. In X# we need to support both cases for the VFP dialect and the DEFINE CLASS syntax, and it becomes complicated.
If you use the standard X# base syntax for defining a class (CLASS name INHERIT type) then memeber completion works as expected, but I am not suggesting that you should change your code, the problem in member completion needs to be fixed. Maybe until it's fixed, you can temporarily use the standard syntax though.
Chris Pyrgas
XSharp Development Team
chris(at)xsharp.eu
XSharp Development Team
chris(at)xsharp.eu
Re: Questions about object members lists
Hi, Chris
Thank you for confirming!
Thank you for confirming!
简单的东西重复做,你能成为专家;重复的东西用心做,你能成为赢家!