Re: Modifying indexer and add function of existing class && Use functions stored in C# dll without specifying classname
- From: michelQA <michelqa@xxxxxxxx>
- Date: Sun, 24 May 2009 12:34:25 -0700 (PDT)
Why? Why is it a requirement that you "avoid MyDllClass.XButton in the C#
project"? It seems like a needless, arbitrary requirement to me.
You are right but the classname of XButton in the dll is totally
useless for the end user since 99% of lines of the script will starts
with that classname. The goal was to identify the object and the
action to execute at the same time in one simple line. Still thinking
about this.
For my question with indexers I realize that there are indexers with
string parameter in latest net framework...for some reasons I was
using a 1.1 net version when trying to figure out this... But there
stills indexer to modify like the Items of a ComboBox since I want
ComboBox("Combo1").Items("Item3").Select() and not ComboBox
("Combo1").Items[2].Select()
I need to think more about this and try different things...Since there
is no way to create a function Button(string button name) or ListView
(string ListViewName) and being able to call this without the
classname i'm considering moving theses function from the dll to the
user script by adding the code needed at the end of the script just
before the compiling process. But this is defenitively not a clean
solution but this can be improved or modified in a futur version.
.
- Follow-Ups:
- References:
- Prev by Date: Opinion Wanted - How to Expose a Collection
- Next by Date: Re: Opinion Wanted - How to Expose a Collection
- Previous by thread: Re: Modifying indexer and add function of existing class && Use functions stored in C# dll without specifying classname
- Next by thread: Re: Modifying indexer and add function of existing class && Use functions stored in C# dll without specifying classname
- Index(es):