c# - How can pass a struct through multiple namespaces without 'using' them? -


this kind of simple problem (or maybe not) i'm caught on. have application testapp uses ui library i'm working on in turn uses graphics library (sharpdx).

now sharpdx provides color struct (sharpdx.color). , window class (ui.window) accepts sharpdx.color struct clear rendertarget.

however, when using ui library, sharpdx namespace isn't available. causes problem color isn't available.

so possible make color available in ui namespace, avoiding need have references sharpdx in project uses ui library.

thanks.

as far aware, use part of library, need use entire library (unless author has broken down submodules).

if using ui library, how can pass sharpdx.color without using sharpdx? if wish use part of library can split off components depend on sharpdx rest.

alternatively, can make own color struct, , translate between ui.color , sharpdx.color @ intersection between ui , sharpdx code.


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -