Click here to Skip to main content
15,888,816 members
Home / Discussions / C#
   

C#

 
QuestionMySQL Data Synchronisation between Databases in C# Pin
RevathySanthanam2-Apr-15 4:14
RevathySanthanam2-Apr-15 4:14 
Rant[REPOST] MySQL Data Synchronisation between Databases in C# Pin
Richard Deeming2-Apr-15 4:42
mveRichard Deeming2-Apr-15 4:42 
QuestionTime out handling in System.Threading.Task class in dotnet 4.0 Pin
Member 113878772-Apr-15 0:11
Member 113878772-Apr-15 0:11 
AnswerRe: Time out handling in System.Threading.Task class in dotnet 4.0 Pin
Pete O'Hanlon2-Apr-15 0:47
mvePete O'Hanlon2-Apr-15 0:47 
AnswerRe: Time out handling in System.Threading.Task class in dotnet 4.0 Pin
Afzaal Ahmad Zeeshan2-Apr-15 1:04
professionalAfzaal Ahmad Zeeshan2-Apr-15 1:04 
QuestionLinq extension method and referencing object? Pin
TMattC1-Apr-15 22:24
TMattC1-Apr-15 22:24 
AnswerRe: Linq extension method and referencing object? Pin
OriginalGriff1-Apr-15 23:47
mveOriginalGriff1-Apr-15 23:47 
GeneralRe: Linq extension method and referencing object? Pin
TMattC2-Apr-15 3:49
TMattC2-Apr-15 3:49 
Well, I made the classic mistake of attaching too little code to my question, sorry about that. The thing is that my ProdTotalSales was declared as a struct. That meant that when I was debugging, the debugger showed ps.Antal=1 but salesLst[0].Antal=0 after executing the two rows of code above. I still dont understand how that could be. Now when I changed the ProdTotalSales into being a class, it works just fine. I would really appreciate an explanation to this. Could it have something to do with me calling the default-constructor?

The ProdTotalSales looked like this:
C#
public struct ProdTotalSales
{
    public int Year { get; set; }
    public int Month { get; set; }
    public int Antal { get; set; }

    public ProdTotalSales(int _year, int _month, int _antal) : this()
    {
        Year = _year;
        Month = _month;
        Antal = _antal;
    }
}

GeneralRe: Linq extension method and referencing object? Pin
OriginalGriff2-Apr-15 4:05
mveOriginalGriff2-Apr-15 4:05 
GeneralRe: Linq extension method and referencing object? Pin
TMattC2-Apr-15 5:23
TMattC2-Apr-15 5:23 
GeneralRe: Linq extension method and referencing object? Pin
OriginalGriff2-Apr-15 5:47
mveOriginalGriff2-Apr-15 5:47 
GeneralRe: Linq extension method and referencing object? Pin
Simon_Whale2-Apr-15 4:12
Simon_Whale2-Apr-15 4:12 
Questionc# file I/O looking strange in task manager Pin
Dan Wulff1-Apr-15 11:16
Dan Wulff1-Apr-15 11:16 
SuggestionRe: c# file I/O looking strange in task manager Pin
Richard Deeming1-Apr-15 11:22
mveRichard Deeming1-Apr-15 11:22 
GeneralRe: c# file I/O looking strange in task manager Pin
Dan Wulff1-Apr-15 11:46
Dan Wulff1-Apr-15 11:46 
AnswerRe: c# file I/O looking strange in task manager Pin
Brisingr Aerowing1-Apr-15 11:23
professionalBrisingr Aerowing1-Apr-15 11:23 
GeneralRe: c# file I/O looking strange in task manager Pin
Dan Wulff1-Apr-15 11:44
Dan Wulff1-Apr-15 11:44 
AnswerRe: c# file I/O looking strange in task manager PinPopular
Richard MacCutchan1-Apr-15 21:15
mveRichard MacCutchan1-Apr-15 21:15 
GeneralRe: c# file I/O looking strange in task manager Pin
Dan Wulff2-Apr-15 10:31
Dan Wulff2-Apr-15 10:31 
AnswerRe: c# file I/O looking strange in task manager Pin
Gerry Schmitz1-Apr-15 21:31
mveGerry Schmitz1-Apr-15 21:31 
GeneralRe: c# file I/O looking strange in task manager Pin
Dan Wulff2-Apr-15 10:34
Dan Wulff2-Apr-15 10:34 
QuestionCreate a Developper Pin
Member 83675021-Apr-15 10:42
Member 83675021-Apr-15 10:42 
AnswerRe: Create a Developper Pin
Dave Kreskowiak1-Apr-15 10:57
mveDave Kreskowiak1-Apr-15 10:57 
GeneralRe: Create a Developper Pin
Member 83675021-Apr-15 11:26
Member 83675021-Apr-15 11:26 
GeneralRe: Create a Developper Pin
PIEBALDconsult1-Apr-15 11:00
mvePIEBALDconsult1-Apr-15 11:00 

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.