Reflection

  • Thread starter Thread starter Fabien
  • Start date Start date
F

Fabien

Hello,

There is my problem :
I develop a dll who is used in 2 projects : one for PC and one other for
Pocket.
My dll contain a class that derive System.Windows.Form.TextBox.
My problem is : I want to override the method IsInputKey that exist only on
PC.
What shall we do ? Using Reflection ?

Anybody have an idea ?

Thanks
Fabien
 
Fabien said:
There is my problem :
I develop a dll who is used in 2 projects : one for PC and one other for
Pocket.
My dll contain a class that derive System.Windows.Form.TextBox.
My problem is : I want to override the method IsInputKey that exist only on
PC.
What shall we do ? Using Reflection ?

Anybody have an idea ?

Use conditional compilation:

#if DESKTOP
....

#endif

and then define the DESKTOP symbol for desktop builds, and don't define
it for "device" builds.
 
Thanks, i didn't think it

Jon Skeet said:
Use conditional compilation:

#if DESKTOP
...

#endif

and then define the DESKTOP symbol for desktop builds, and don't define
it for "device" builds.
 
Back
Top