Click here to Skip to main content
12,076,727 members (44,950 online)
   

C#

 
AnswerRe: from java to c# Pin
Richard MacCutchan27-Jan-13 7:27
mvpRichard MacCutchan27-Jan-13 7:27 
AnswerRe: from java to c# Pin
Dave Doknjas27-Jan-13 17:37
memberDave Doknjas27-Jan-13 17:37 
QuestionC# timeout on linq to sql Pin
dcof27-Jan-13 3:52
memberdcof27-Jan-13 3:52 
AnswerRe: C# timeout on linq to sql Pin
Dave Kreskowiak27-Jan-13 4:50
mvpDave Kreskowiak27-Jan-13 4:50 
AnswerRe: C# timeout on linq to sql Pin
jschell27-Jan-13 7:10
memberjschell27-Jan-13 7:10 
AnswerRe: C# timeout on linq to sql Pin
V.27-Jan-13 21:41
memberV.27-Jan-13 21:41 
Questionactivity-selection algorithm in c# Pin
mazizi026-Jan-13 21:36
membermazizi026-Jan-13 21:36 
AnswerRe: activity-selection algorithm in c# Pin
Pete O'Hanlon26-Jan-13 22:16
protectorPete O'Hanlon26-Jan-13 22:16 
GeneralRe: activity-selection algorithm in c# Pin
mazizi027-Jan-13 10:37
membermazizi027-Jan-13 10:37 
GeneralRe: activity-selection algorithm in c# Pin
Pete O'Hanlon27-Jan-13 10:50
protectorPete O'Hanlon27-Jan-13 10:50 
AnswerRe: activity-selection algorithm in c# Pin
Dave Kreskowiak27-Jan-13 4:46
mvpDave Kreskowiak27-Jan-13 4:46 
GeneralRe: activity-selection algorithm in c# Pin
mazizi027-Jan-13 10:35
membermazizi027-Jan-13 10:35 
GeneralRe: activity-selection algorithm in c# Pin
Dave Kreskowiak27-Jan-13 15:37
mvpDave Kreskowiak27-Jan-13 15:37 
AnswerRe: activity-selection algorithm in c# Pin
riced27-Jan-13 12:06
memberriced27-Jan-13 12:06 
Here's an activity selection algorithmm coded in C# - probably not what you want. Smile | :)
But you have not explained what you want.
static void Main(string[] args)
{
   Random rndGen = new Random();
   var activities = new List<string>() { "bake bread", "mow lawn", "read book", "sleep", "don batman costume", "sneeze",
                  "have a beer", "code furiously", "make excuse for late assignment", "plead for help"};
 
   for (int i = 0; i < 3; i++)
   {
      int act = rndGen.Next(activities.Count);
      Console.WriteLine((i+1).ToString() + ". " + activities[act]);
   }
   Console.ReadLine();
}
Regards
David R
---------------------------------------------------------------
"Every program eventually becomes rococo, and then rubble." - Alan Perlis
The only valid measurement of code quality: WTFs/minute.

GeneralRe: activity-selection algorithm in c# Pin
PIEBALDconsult27-Jan-13 18:50
memberPIEBALDconsult27-Jan-13 18:50 
AnswerRe: activity-selection algorithm in c# Pin
J4amieC28-Jan-13 1:44
memberJ4amieC28-Jan-13 1:44 
AnswerRe: activity-selection algorithm in c# Pin
pt140128-Jan-13 9:40
memberpt140128-Jan-13 9:40 
QuestionC# access excel file Pin
dcof26-Jan-13 19:24
memberdcof26-Jan-13 19:24 
SuggestionRe: C# access excel file Pin
Richard MacCutchan27-Jan-13 1:15
mvpRichard MacCutchan27-Jan-13 1:15 
AnswerRe: C# access excel file Pin
Dave Kreskowiak27-Jan-13 4:44
mvpDave Kreskowiak27-Jan-13 4:44 
QuestionWCF receiving large XML Pin
Alex Campos Vzla25-Jan-13 12:39
memberAlex Campos Vzla25-Jan-13 12:39 
AnswerRe: WCF receiving large XML Pin
Eddy Vluggen26-Jan-13 4:38
mvpEddy Vluggen26-Jan-13 4:38 
Questionreading NTFS Share permission - how to interpret SHARE_INFO_2.Permissions flag Pin
devvvy25-Jan-13 9:52
memberdevvvy25-Jan-13 9:52 
AnswerRe: reading NTFS Share permission - how to interpret SHARE_INFO_2.Permissions flag Pin
André Kraak25-Jan-13 11:57
memberAndré Kraak25-Jan-13 11:57 
AnswerRe: reading NTFS Share permission - how to interpret SHARE_INFO_2.Permissions flag Pin
Richard Deeming28-Jan-13 3:02
memberRichard Deeming28-Jan-13 3:02 
Questionreturn list of url if i enter specific keyword Pin
prashant.k.bamania25-Jan-13 3:24
memberprashant.k.bamania25-Jan-13 3:24 
AnswerRe: return list of url if i enter specific keyword Pin
Richard MacCutchan25-Jan-13 4:24
mvpRichard MacCutchan25-Jan-13 4:24 
GeneralRe: return list of url if i enter specific keyword Pin
prashant.k.bamania26-Jan-13 2:21
memberprashant.k.bamania26-Jan-13 2:21 
GeneralRe: return list of url if i enter specific keyword Pin
Richard MacCutchan26-Jan-13 2:23
mvpRichard MacCutchan26-Jan-13 2:23 
AnswerRe: return list of url if i enter specific keyword Pin
Pete O'Hanlon25-Jan-13 4:53
protectorPete O'Hanlon25-Jan-13 4:53 
GeneralRe: return list of url if i enter specific keyword Pin
prashant.k.bamania26-Jan-13 2:22
memberprashant.k.bamania26-Jan-13 2:22 
GeneralRe: return list of url if i enter specific keyword Pin
Pete O'Hanlon26-Jan-13 6:12
protectorPete O'Hanlon26-Jan-13 6:12 
AnswerRe: return list of url if i enter specific keyword Pin
Manfred R. Bihy26-Jan-13 11:09
memberManfred R. Bihy26-Jan-13 11:09 
SuggestionGoogle Earth Plugin throwing Javascript Error to WPF Window Pin
citibabu24-Jan-13 20:50
membercitibabu24-Jan-13 20:50 
GeneralRe: Google Earth Plugin throwing Javascript Error to WPF Window Pin
Richard MacCutchan25-Jan-13 2:41
mvpRichard MacCutchan25-Jan-13 2:41 
Questionimplementing skype plugin on windows 8 Pin
omotayo adebola24-Jan-13 14:37
memberomotayo adebola24-Jan-13 14:37 
AnswerRe: implementing skype plugin on windows 8 Pin
Pete O'Hanlon25-Jan-13 1:08
protectorPete O'Hanlon25-Jan-13 1:08 
QuestionC# timeout Pin
dcof24-Jan-13 13:10
memberdcof24-Jan-13 13:10 
AnswerRe: C# timeout Pin
Mycroft Holmes24-Jan-13 15:01
memberMycroft Holmes24-Jan-13 15:01 
AnswerRe: C# timeout Pin
V.25-Jan-13 2:27
memberV.25-Jan-13 2:27 
AnswerRe: C# timeout Pin
jschell25-Jan-13 10:25
memberjschell25-Jan-13 10:25 
QuestionSkip current line in file Pin
vanikanc24-Jan-13 11:11
membervanikanc24-Jan-13 11:11 
AnswerRe: Skip current line in file Pin
mark merrens24-Jan-13 11:15
membermark merrens24-Jan-13 11:15 
AnswerRe: Skip current line in file Pin
jibesh24-Jan-13 11:29
memberjibesh24-Jan-13 11:29 
GeneralRe: Skip current line in file Pin
vanikanc24-Jan-13 11:51
membervanikanc24-Jan-13 11:51 
GeneralRe: Skip current line in file Pin
jibesh24-Jan-13 11:52
memberjibesh24-Jan-13 11:52 
AnswerRe: Skip current line in file Pin
PIEBALDconsult24-Jan-13 12:02
memberPIEBALDconsult24-Jan-13 12:02 
QuestionMultiple marker Pin
KORCARI24-Jan-13 10:48
memberKORCARI24-Jan-13 10:48 
AnswerRe: Multiple marker Pin
Pete O'Hanlon24-Jan-13 12:24
protectorPete O'Hanlon24-Jan-13 12:24 
QuestionSaveFileDialog and OverwritePrompt Pin
GenJerDan24-Jan-13 6:13
memberGenJerDan24-Jan-13 6: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.


Advertise | Privacy | Mobile
Web03 | 2.8.160212.1 | Last Updated 12 Feb 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid