>>>Is there are way you can execute a marco-substitution in c#, like you can in VFP?
>>>In VFP it's something like this:
>>>
>>>use sometable
>>>lcCmd = "BROWSE"
>>>&lcCmd
>>>
>>>
>>>Is there a way you can do something like it in c#?
>>>
>>>Thanks.
>>
>>I have been programming C# (not full time since I do tons of VFP work as well) since 2005. And I don't remember a case where I would need to have the VFP-like macro feature in C#. Unless your question is academic, it would help to see an example of what you are trying to to.
>
>Dmitry/(and Viv)
>
>Before Generics came around, there were scenarios where reflection really helped. But the combination of generics and interfaces often reduces the # of instances where it's necessary. Using generics can mean giving a serious second look at a design, and it's usually worth it.
Don't know what Sandy wants to achieve but I'm having difficulty in seeing how generics might help? An interface with related classes could help - but using delegates might be simpler and more flexible ?
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement