Click here to Skip to main content
15,909,939 members
Home / Discussions / C#
   

C#

 
GeneralRe: Refresh DataGrid with Latest Values Pin
ramdil11-Jul-07 5:25
ramdil11-Jul-07 5:25 
GeneralRe: Refresh DataGrid with Latest Values Pin
Drew McGhie11-Jul-07 7:27
Drew McGhie11-Jul-07 7:27 
QuestionAutoCompleteStringCollection + Specified cast is not valid Pin
Nouman Bhatti11-Jul-07 3:00
Nouman Bhatti11-Jul-07 3:00 
AnswerRe: AutoCompleteStringCollection + Specified cast is not valid Pin
Scott Dorman11-Jul-07 3:29
professionalScott Dorman11-Jul-07 3:29 
QuestionIPC-Remoting call hangs Pin
BhaaL-san11-Jul-07 2:52
BhaaL-san11-Jul-07 2:52 
AnswerRe: IPC-Remoting call hangs Pin
michalburger24-Aug-10 1:00
michalburger24-Aug-10 1:00 
GeneralRe: IPC-Remoting call hangs Pin
BhaaLseN24-Aug-10 6:37
BhaaLseN24-Aug-10 6:37 
QuestionXML serialization #2 Pin
ruanr11-Jul-07 2:50
ruanr11-Jul-07 2:50 
Hi,

Firstly, I realize I had posted a thread very recently regarding XML serialization, but I can't bump it and this is a different question Smile | :)

I need to serialize a whole data structure, and as it happens I have more than one reference to the same object in different parts of my code, i.e. (trying to think of a simplified example) Imagine a shop that keeps track of each customer's favorite item:

<br />
class Shop<br />
{<br />
    Customer customer;<br />
    Item[] inventoryList;<br />
<br />
<br />
}<br />
<br />
class Customer<br />
{<br />
    Item favoriteItem;<br />
}<br />


When customer is initialised it will have a reference to an item in the inventorylist. As I understand it, the deserializer will generate a new instance of Item for the customer, or I can ignore it, in which case it will be null when I deserialize. Is there a simple solution to get it as a reference to the intended object? I realize that in this case I can just use an index in the array rather than a reference to store the favoriteItem, but this will require major refactoring of my code.
QuestionFile Conversion from CSV format Excel format in C# (I have to do Programatically) Pin
liyakhat_shahid11-Jul-07 2:34
liyakhat_shahid11-Jul-07 2:34 
AnswerRe: File Conversion from CSV format Excel format in C# (I have to do Programatically) Pin
Christian Graus11-Jul-07 2:37
protectorChristian Graus11-Jul-07 2:37 
GeneralRe: File Conversion from CSV format Excel format in C# (I have to do Programatically) Pin
liyakhat_shahid11-Jul-07 2:46
liyakhat_shahid11-Jul-07 2:46 
QuestionConvert string in DB to DateTime in .NET Pin
blackjack215011-Jul-07 2:19
blackjack215011-Jul-07 2:19 
AnswerRe: Convert string in DB to DateTime in .NET Pin
originSH11-Jul-07 2:21
originSH11-Jul-07 2:21 
AnswerRe: Convert string in DB to DateTime in .NET Pin
Christian Graus11-Jul-07 2:22
protectorChristian Graus11-Jul-07 2:22 
QuestionRe: Convert string in DB to DateTime in .NET Pin
blackjack215011-Jul-07 2:30
blackjack215011-Jul-07 2:30 
AnswerRe: Convert string in DB to DateTime in .NET Pin
Pete O'Hanlon11-Jul-07 3:43
mvePete O'Hanlon11-Jul-07 3:43 
GeneralRe: Convert string in DB to DateTime in .NET Pin
PIEBALDconsult11-Jul-07 11:00
mvePIEBALDconsult11-Jul-07 11:00 
GeneralRe: Convert string in DB to DateTime in .NET Pin
blackjack215011-Jul-07 11:03
blackjack215011-Jul-07 11:03 
QuestionSMS from .NET application Pin
neer111-Jul-07 2:15
neer111-Jul-07 2:15 
AnswerRe: SMS from .NET application Pin
originSH11-Jul-07 2:22
originSH11-Jul-07 2:22 
AnswerRe: SMS from .NET application Pin
Giorgi Dalakishvili11-Jul-07 2:23
mentorGiorgi Dalakishvili11-Jul-07 2:23 
AnswerRe: SMS from .NET application Pin
Affan Toor11-Jul-07 2:24
Affan Toor11-Jul-07 2:24 
GeneralRe: SMS from .NET application Pin
Giorgi Dalakishvili11-Jul-07 5:58
mentorGiorgi Dalakishvili11-Jul-07 5:58 
GeneralRe: SMS from .NET application Pin
Affan Toor11-Jul-07 23:17
Affan Toor11-Jul-07 23:17 
Questionhelp needed in c# Pin
jagafa11-Jul-07 2:13
jagafa11-Jul-07 2:13 

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.