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

C#

 
GeneralRe: How to override the = operator? Pin
atoi_powered13-Jun-12 11:31
atoi_powered13-Jun-12 11:31 
AnswerRe: How to override the = operator? Pin
Philippe Mori13-Jun-12 12:03
Philippe Mori13-Jun-12 12:03 
AnswerRe: How to override the = operator? Pin
BobJanova14-Jun-12 2:04
BobJanova14-Jun-12 2:04 
GeneralRe: How to override the = operator? Pin
atoi_powered14-Jun-12 9:40
atoi_powered14-Jun-12 9:40 
AnswerRe: How to override the = operator? Pin
Luc Pattyn14-Jun-12 5:41
sitebuilderLuc Pattyn14-Jun-12 5:41 
GeneralRe: How to override the = operator? Pin
atoi_powered14-Jun-12 9:32
atoi_powered14-Jun-12 9:32 
GeneralRe: How to override the = operator? Pin
Luc Pattyn14-Jun-12 12:25
sitebuilderLuc Pattyn14-Jun-12 12:25 
QuestionAdding a variable to a variable name Pin
MichCl13-Jun-12 8:35
MichCl13-Jun-12 8:35 
Is there a way to add a variable to a variable name reference? I'm trying to cut out a rats nest of if statements. When I searched, I found this but it didn't look like what I want: http://www.windows-tech.info/1/ae8c74ec5a29a601.php[^]

This is a code snippet to get an idea of what I'm talking about:
C#
//count Good or NG program result per shift
foreach (Shift shift in shiftArr)
{
    //iterate through array of Shift Structs
    if (shift.shift == currentShift)
    {
        if (programResult == 0) //0 == No Good (NG)
        {
            shift.NG_Count++;
            tb_Shift_$(currentShift)_Count_NG = Convert.ToString(shift.NG_Count); //this doesn't work but maybe there's a way
        }
        else
        {
            shift.good_Count++;
            tb_Shift_$(currentShift)_Count_G = Convert.ToString(shift.G_Count); //issue too

        }
    }
}

AnswerRe: Adding a variable to a variable name Pin
Pete O'Hanlon13-Jun-12 8:41
mvePete O'Hanlon13-Jun-12 8:41 
GeneralRe: Adding a variable to a variable name Pin
MichCl13-Jun-12 8:57
MichCl13-Jun-12 8:57 
GeneralRe: Adding a variable to a variable name Pin
Dave Kreskowiak13-Jun-12 9:18
mveDave Kreskowiak13-Jun-12 9:18 
AnswerRe: Adding a variable to a variable name Pin
BobJanova14-Jun-12 2:06
BobJanova14-Jun-12 2:06 
GeneralRe: Adding a variable to a variable name Pin
MichCl14-Jun-12 6:37
MichCl14-Jun-12 6:37 
GeneralRe: Adding a variable to a variable name Pin
Pete O'Hanlon14-Jun-12 7:05
mvePete O'Hanlon14-Jun-12 7:05 
QuestionIWebBrowser2 NewWindow3 doesn't track target frame name Pin
vwmberry9513-Jun-12 7:11
vwmberry9513-Jun-12 7:11 
QuestionPHP web service requires array but how to send correct array with C#? Pin
JD8613-Jun-12 7:01
JD8613-Jun-12 7:01 
AnswerMessage Closed Pin
13-Jun-12 8:51
WebMaster13-Jun-12 8:51 
GeneralRe: PHP web service requires array but how to send correct array with C#? Pin
JD8613-Jun-12 12:42
JD8613-Jun-12 12:42 
AnswerRe: PHP web service requires array but how to send correct array with C#? Pin
BobJanova14-Jun-12 2:08
BobJanova14-Jun-12 2:08 
GeneralRe: PHP web service requires array but how to send correct array with C#? Pin
JD8614-Jun-12 2:57
JD8614-Jun-12 2:57 
GeneralRe: PHP web service requires array but how to send correct array with C#? Pin
BobJanova14-Jun-12 3:51
BobJanova14-Jun-12 3:51 
GeneralRe: PHP web service requires array but how to send correct array with C#? Pin
JD8614-Jun-12 3:56
JD8614-Jun-12 3:56 
GeneralRe: PHP web service requires array but how to send correct array with C#? Pin
BobJanova14-Jun-12 5:54
BobJanova14-Jun-12 5:54 
GeneralRe: PHP web service requires array but how to send correct array with C#? Pin
JD8614-Jun-12 5:57
JD8614-Jun-12 5:57 
QuestionException has been thrown by the target of an invocation. Pin
MichCl13-Jun-12 6:01
MichCl13-Jun-12 6:01 

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.