Click here to Skip to main content
15,906,301 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to flip monitor (Horizontal or Vertical? ? Pin
Eddy Vluggen14-May-14 5:23
professionalEddy Vluggen14-May-14 5:23 
GeneralRe: How to flip monitor (Horizontal or Vertical? ? Pin
OriginalGriff14-May-14 8:39
mveOriginalGriff14-May-14 8:39 
GeneralRe: How to flip monitor (Horizontal or Vertical? ? Pin
Bill Lee Vn14-May-14 4:41
Bill Lee Vn14-May-14 4:41 
Newsasp.net MVC related latest news ? Pin
pkarthionline12-May-14 21:04
pkarthionline12-May-14 21:04 
AnswerRe: how to call server side function from jquery Pin
OriginalGriff12-May-14 21:30
mveOriginalGriff12-May-14 21:30 
AnswerRe: how to call server side function from jquery Pin
Keith Barrow12-May-14 22:41
professionalKeith Barrow12-May-14 22:41 
GeneralMy Vote of 1 Pin
Keith Barrow13-May-14 0:41
professionalKeith Barrow13-May-14 0:41 
GeneralRe: My Vote of 1 Pin
Pete O'Hanlon13-May-14 1:27
mvePete O'Hanlon13-May-14 1:27 
GeneralRe: My Vote of 1 Pin
OriginalGriff13-May-14 2:41
mveOriginalGriff13-May-14 2:41 
QuestionOpenFileName under WinPE Pin
vacko12-May-14 20:41
vacko12-May-14 20:41 
QuestionC# kinect game Pin
Member 1080779612-May-14 9:32
Member 1080779612-May-14 9:32 
AnswerRe: C# kinect game Pin
OriginalGriff12-May-14 20:46
mveOriginalGriff12-May-14 20:46 
QuestionC# Asp.Net Web App - Generating Outlook Email for Download Pin
MatiTuk12-May-14 9:09
MatiTuk12-May-14 9:09 
AnswerRe: C# Asp.Net Web App - Generating Outlook Email for Download Pin
Bernhard Hiller12-May-14 21:59
Bernhard Hiller12-May-14 21:59 
GeneralRe: C# Asp.Net Web App - Generating Outlook Email for Download Pin
MatiTuk13-May-14 2:38
MatiTuk13-May-14 2:38 
QuestionUse GPU from C# Pin
AmbiguousName12-May-14 6:52
AmbiguousName12-May-14 6:52 
AnswerRe: Use GPU from C# Pin
Eddy Vluggen12-May-14 7:43
professionalEddy Vluggen12-May-14 7:43 
GeneralRe: Use GPU from C# Pin
AmbiguousName12-May-14 7:49
AmbiguousName12-May-14 7:49 
GeneralRe: Use GPU from C# Pin
Eddy Vluggen12-May-14 8:38
professionalEddy Vluggen12-May-14 8:38 
GeneralRe: Use GPU from C# Pin
AmbiguousName12-May-14 19:18
AmbiguousName12-May-14 19:18 
GeneralRe: Use GPU from C# Pin
Eddy Vluggen13-May-14 7:04
professionalEddy Vluggen13-May-14 7:04 
QuestionHow can i make this program Parrallel ? Pin
Member 1037568411-May-14 11:51
Member 1037568411-May-14 11:51 
C#
foreach (var fname in fnames)
{
    // Open file, read in file contents,
    // process each line one at a time
    // split into words, add word to index if not already present
    // increment occurrence count for this file and record line number.
    string[] lines = File.ReadAllLines(fname);

    for (int i = 0; i < lines.Length; i++)
    {
        string[] wordsInLineRaw = Regex.Split(lines[i], @"\W+");

        string[] wordsInLine = new string[wordsInLineRaw.Length];

        for (int p = 0; p < wordsInLineRaw.Length; p++)
        {
            wordsInLine[p] = wordsInLineRaw[p].ToLower();
        }

        // Process each word found in line
        for (int j = 0; j < wordsInLine.Length; j++)
        {
            string w = wordsInLine[j];
            // If word in stop list break
            if (stopWords.Contains(w)) continue;

            //if word not in index add it
            if (!index.ContainsKey(w))
            {

                if (worker.CancellationPending)
                {

                }
                    //e.Cancel();

                    index.Add(w, new IndexEntry());


                }

                // Update info about word
                index[w].UpdateInfo(fname, i);
            }
        }

AnswerRe: How can i make this program Parrallel ? Pin
Phil Martin11-May-14 12:57
professionalPhil Martin11-May-14 12:57 
GeneralRe: How can i make this program Parrallel ? Pin
Bernhard Hiller11-May-14 22:06
Bernhard Hiller11-May-14 22:06 
GeneralRe: How can i make this program Parrallel ? Pin
Rob Philpott11-May-14 22:24
Rob Philpott11-May-14 22:24 

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.