Click here to Skip to main content
15,891,708 members
Home / Discussions / C#
   

C#

 
Question[Message Deleted] Pin
Avadhesh Kumar Maurya25-Jul-07 21:20
Avadhesh Kumar Maurya25-Jul-07 21:20 
QuestionRe: Install database with Project Setup Pin
Eduard Keilholz25-Jul-07 21:36
Eduard Keilholz25-Jul-07 21:36 
AnswerRe: Install database with Project Setup Pin
Michael Sync25-Jul-07 21:43
Michael Sync25-Jul-07 21:43 
GeneralRe: Install database with Project Setup Pin
Eduard Keilholz25-Jul-07 21:48
Eduard Keilholz25-Jul-07 21:48 
QuestionTypeForwardedToAttribute Pin
Michael Sync25-Jul-07 21:18
Michael Sync25-Jul-07 21:18 
AnswerRe: TypeForwardedToAttribute Pin
geo_m26-Jul-07 3:45
geo_m26-Jul-07 3:45 
GeneralRe: TypeForwardedToAttribute Pin
Michael Sync26-Jul-07 15:57
Michael Sync26-Jul-07 15:57 
GeneralRe: TypeForwardedToAttribute Pin
Michael Sync26-Jul-07 16:21
Michael Sync26-Jul-07 16:21 
Okay. geo_m. I got you..

The main advantage having this attribute is that it's easy to move the type without recompiling the main application.

1. Code Class1 in (ClassLibrary1) assembly.
2. Add this ClassLibrary1.dll to Window application
3. Use ClassLibrary1.Class1 in window application
4. Code a new assembly (ClassLibrary2).
2. Move type Class1 to from ClassLibrary1 to ClassLibrary2. // Note by Michael Sync: We can't change the original namespace. So, we have to keep "ClassLibrary1.Class1" in ClassLibrary2
3. Remove Class1 from ClassLibrary1.
4. Reference ClassLibrary2 from ClassLibrary1
5. Add a TypeForwardedTo attribute to ClassLibrary1, pointing at ClassLibrary2(now in A2)
eg: in assembly.cs under properties of project view
[assembly: TypeForwardedTo(typeof(ClassLibrary1.Class1))]

6. Recompile ClassLibrary1 and ClassLibrary2 .
7. Copy new ClassLibrary1.dll and ClassLibrary2.dll. Replace the old ClassLibrary1.dll. Paste ClassLibrary2.dll

We dont need to touch Window application for adding ClassLibrary2.dll. Window application keep using ClassLibrary1. ClassLibrary1 will forword to ClassLibrary2. So, it's not necessary to recompile the window application..

Yeah. That's great...

Thanks again. geo_m

Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)


QuestionConverting String to Date Pin
totocaster25-Jul-07 21:01
totocaster25-Jul-07 21:01 
AnswerRe: Converting String to Date Pin
Christian Graus25-Jul-07 21:12
protectorChristian Graus25-Jul-07 21:12 
AnswerRe: Converting String to Date Pin
Vikram A Punathambekar25-Jul-07 22:14
Vikram A Punathambekar25-Jul-07 22:14 
AnswerRe: Converting String to Date Pin
Developer61126-Jul-07 0:32
Developer61126-Jul-07 0:32 
AnswerRe: Converting String to Date Pin
Eliz.k26-Jul-07 22:04
Eliz.k26-Jul-07 22:04 
QuestionFiles restore by MSI after change Pin
Eduard Keilholz25-Jul-07 21:00
Eduard Keilholz25-Jul-07 21:00 
Questiondetecting mouseclick in arraylist Pin
cyn825-Jul-07 20:53
cyn825-Jul-07 20:53 
AnswerRe: detecting mouseclick in arraylist Pin
Christian Graus25-Jul-07 21:15
protectorChristian Graus25-Jul-07 21:15 
GeneralRe: detecting mouseclick in arraylist Pin
cyn825-Jul-07 21:40
cyn825-Jul-07 21:40 
Questionto load two combobox side by side on clicking a button(single click). Pin
sowmyasaravanakumar25-Jul-07 20:37
sowmyasaravanakumar25-Jul-07 20:37 
AnswerRe: to load two combobox side by side on clicking a button(single click). Pin
Michael Sync25-Jul-07 20:54
Michael Sync25-Jul-07 20:54 
GeneralRe: to load two combobox side by side on clicking a button(single click). Pin
Michael Sync25-Jul-07 20:57
Michael Sync25-Jul-07 20:57 
QuestionEnable/Disable Menuitems of MdiParent from MdiChild Pin
zenithmaximus25-Jul-07 20:14
zenithmaximus25-Jul-07 20:14 
AnswerRe: Enable/Disable Menuitems of MdiParent from MdiChild Pin
ashukasama25-Jul-07 20:54
ashukasama25-Jul-07 20:54 
GeneralRe: Enable/Disable Menuitems of MdiParent from MdiChild Pin
zenithmaximus25-Jul-07 21:06
zenithmaximus25-Jul-07 21:06 
GeneralRe: Enable/Disable Menuitems of MdiParent from MdiChild Pin
ashukasama25-Jul-07 21:11
ashukasama25-Jul-07 21:11 
GeneralRe: Enable/Disable Menuitems of MdiParent from MdiChild Pin
zenithmaximus25-Jul-07 21:20
zenithmaximus25-Jul-07 21:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.