Click here to Skip to main content
15,923,006 members
Home / Discussions / C#
   

C#

 
GeneralRe: A question about references Pin
Ian Shlasko27-Apr-11 3:54
Ian Shlasko27-Apr-11 3:54 
QuestionOpinion on the following please... Pin
Rob Philpott27-Apr-11 3:15
Rob Philpott27-Apr-11 3:15 
AnswerRe: Opinion on the following please... Pin
Pete O'Hanlon27-Apr-11 3:17
mvePete O'Hanlon27-Apr-11 3:17 
GeneralRe: Opinion on the following please... Pin
Rob Philpott27-Apr-11 3:24
Rob Philpott27-Apr-11 3:24 
AnswerRe: Opinion on the following please... Pin
Ian Shlasko27-Apr-11 3:19
Ian Shlasko27-Apr-11 3:19 
GeneralRe: Opinion on the following please... Pin
Paladin200027-Apr-11 3:30
Paladin200027-Apr-11 3:30 
GeneralRe: Opinion on the following please... Pin
Rob Philpott27-Apr-11 3:36
Rob Philpott27-Apr-11 3:36 
GeneralRe: Opinion on the following please... Pin
Paladin200027-Apr-11 3:43
Paladin200027-Apr-11 3:43 
AnswerRe: Opinion on the following please... Pin
PIEBALDconsult27-Apr-11 14:30
mvePIEBALDconsult27-Apr-11 14:30 
QuestionGauge control to show an angle variation Pin
AlexB4727-Apr-11 3:08
AlexB4727-Apr-11 3:08 
AnswerRe: Gauge control to show an angle variation Pin
Ian Shlasko27-Apr-11 3:17
Ian Shlasko27-Apr-11 3:17 
QuestionAttributes in C# Pin
Loithuxua27-Apr-11 0:15
Loithuxua27-Apr-11 0:15 
AnswerRe: Attributes in C# PinPopular
Pete O'Hanlon27-Apr-11 0:21
mvePete O'Hanlon27-Apr-11 0:21 
GeneralRe: Attributes in C# Pin
Keith Barrow27-Apr-11 0:46
professionalKeith Barrow27-Apr-11 0:46 
GeneralRe: Attributes in C# Pin
Pete O'Hanlon27-Apr-11 1:01
mvePete O'Hanlon27-Apr-11 1:01 
GeneralRe: Attributes in C# Pin
Keith Barrow27-Apr-11 1:24
professionalKeith Barrow27-Apr-11 1:24 
GeneralRe: Attributes in C# Pin
Not Active27-Apr-11 2:29
mentorNot Active27-Apr-11 2:29 
GeneralRe: Attributes in C# Pin
Keith Barrow27-Apr-11 2:32
professionalKeith Barrow27-Apr-11 2:32 
GeneralRe: Attributes in C# Pin
Pete O'Hanlon27-Apr-11 2:36
mvePete O'Hanlon27-Apr-11 2:36 
GeneralRe: Attributes in C# Pin
Not Active27-Apr-11 2:40
mentorNot Active27-Apr-11 2:40 
GeneralRe: Attributes in C# Pin
Wayne Gaylard27-Apr-11 0:55
professionalWayne Gaylard27-Apr-11 0:55 
AnswerRe: Attributes in C# Pin
ambarishtv28-Apr-11 5:45
ambarishtv28-Apr-11 5:45 
QuestionTime-Out for Loop in C#? Pin
JP_Rocks26-Apr-11 23:33
JP_Rocks26-Apr-11 23:33 
AnswerRe: Time-Out for Loop in C#? Pin
V.26-Apr-11 23:41
professionalV.26-Apr-11 23:41 
AnswerRe: Time-Out for Loop in C#? Pin
Wayne Gaylard26-Apr-11 23:48
professionalWayne Gaylard26-Apr-11 23:48 
This doesn't feel quite right but you could do it like this

C#
DateTime d = DateTime.Now.AddMinutes(2);
            for (int i = 0; i <= veryBigInt; i++ )
            {
                //Do work here
                if (DateTime.Now > d)
                    break;
            }


But as i said this really feels like a hack, and I would say there is a faulty decision in the design somewhere.
...and I have extensive experience writing computer code, including OIC, BTW, BRB, IMHO, LMAO, ROFL, TTYL.....

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.