Click here to Skip to main content
15,921,156 members
Home / Discussions / C#
   

C#

 
GeneralRe: Make a method return different types/classes depending on in-parameters Pin
Pete O'Hanlon2-Apr-08 10:13
mvePete O'Hanlon2-Apr-08 10:13 
GeneralRe: Make a method return different types/classes depending on in-parameters Pin
MidwestLimey2-Apr-08 11:38
professionalMidwestLimey2-Apr-08 11:38 
GeneralRe: Make a method return different types/classes depending on in-parameters Pin
Pete O'Hanlon2-Apr-08 22:32
mvePete O'Hanlon2-Apr-08 22:32 
GeneralRe: Make a method return different types/classes depending on in-parameters Pin
arnold_w3-Apr-08 1:17
arnold_w3-Apr-08 1:17 
GeneralC# HTTP request/response Pin
George_George2-Apr-08 2:02
George_George2-Apr-08 2:02 
GeneralCrystal reports how to suppress a section programmatically Pin
NewToAspDotNet2-Apr-08 1:49
NewToAspDotNet2-Apr-08 1:49 
QuestionHow to deserialize the object saved in project1 in another assembly project2? Pin
Chesnokov Yuriy2-Apr-08 1:41
professionalChesnokov Yuriy2-Apr-08 1:41 
GeneralRe: How to deserialize the object saved in project1 in another assembly project2? Pin
Simon P Stevens2-Apr-08 3:34
Simon P Stevens2-Apr-08 3:34 
The problem you have is that you've duplicated the code for SomeClass in both assemblies. This will make them different classes. (A classes full name includes it's assembly name).

What you need to do is only define SomeClass in one place, and reference it from everywhere that needs it. I would suggest you create a 3rd project (of type class library), call is SharedLibrary and place SomeClass.cs in that project. Then reference SharedAssembly from both Project1 and Project2.

(You can add references by right clicking on the project in the solution explorer and clicking "add reference", then using the browse tab to brose to the file.)

You can also create 2 solutions. The first containing Project1 and the SharedLibrary and the second containing project2 and the SharedLibrary. Now when you click "add reference" the SharedLibrary will appear under the projects tab.

Simon

GeneralRe: How to deserialize the object saved in project1 in another assembly project2? Pin
Giorgi Dalakishvili2-Apr-08 4:01
mentorGiorgi Dalakishvili2-Apr-08 4:01 
Generalproblem width Advantech PCI-1730 digital IO card [modified] Pin
arturw822-Apr-08 1:14
arturw822-Apr-08 1:14 
GeneralRe: problem width Advantech PCI-1730 digital IO card Pin
Dave Kreskowiak2-Apr-08 3:52
mveDave Kreskowiak2-Apr-08 3:52 
GeneralRe: problem width Advantech PCI-1730 digital IO card Pin
arturw822-Apr-08 4:13
arturw822-Apr-08 4:13 
GeneralRe: problem width Advantech PCI-1730 digital IO card Pin
Dave Kreskowiak2-Apr-08 5:00
mveDave Kreskowiak2-Apr-08 5:00 
Generalcrystal reporting with C# Pin
Faysal2-Apr-08 1:12
Faysal2-Apr-08 1:12 
QuestionRe: crystal reporting with C# Pin
Pankaj Garg2-Apr-08 1:18
Pankaj Garg2-Apr-08 1:18 
Generalword Pin
ellllllllie2-Apr-08 1:04
ellllllllie2-Apr-08 1:04 
GeneralRe: word Pin
Pete O'Hanlon2-Apr-08 1:50
mvePete O'Hanlon2-Apr-08 1:50 
GeneralRe: word Pin
ellllllllie2-Apr-08 1:54
ellllllllie2-Apr-08 1:54 
GeneralRe: word Pin
Giorgi Dalakishvili2-Apr-08 4:01
mentorGiorgi Dalakishvili2-Apr-08 4:01 
QuestionSharePoint WebPart TreeView Control Problem Pin
Member 42541792-Apr-08 1:00
Member 42541792-Apr-08 1:00 
Questionexport datatable to .csv format in windows application Pin
sharanabasava2-Apr-08 0:40
sharanabasava2-Apr-08 0:40 
GeneralRe: export datatable to .csv format in windows application Pin
Stu Richardson2-Apr-08 2:09
Stu Richardson2-Apr-08 2:09 
Questionmerging the first line of excel in c# Pin
Pankaj Garg2-Apr-08 0:39
Pankaj Garg2-Apr-08 0:39 
GeneralXml Serialization with C# Pin
RichardContact-12-Apr-08 0:28
RichardContact-12-Apr-08 0:28 
GeneralRe: Xml Serialization with C# Pin
J4amieC2-Apr-08 1:08
J4amieC2-Apr-08 1:08 

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.