Click here to Skip to main content
15,890,282 members
Home / Discussions / C#
   

C#

 
AnswerRe: Seeking a better understanding of .NET multithreading and the System.Threading.Tasks.Parallel methods Pin
Richard Deeming23-Apr-21 6:37
mveRichard Deeming23-Apr-21 6:37 
GeneralRe: Seeking a better understanding of .NET multithreading and the System.Threading.Tasks.Parallel methods Pin
pr1mem0ver24-Apr-21 4:09
pr1mem0ver24-Apr-21 4:09 
GeneralRe: Seeking a better understanding of .NET multithreading and the System.Threading.Tasks.Parallel methods Pin
Richard Deeming25-Apr-21 21:16
mveRichard Deeming25-Apr-21 21:16 
GeneralRe: Seeking a better understanding of .NET multithreading and the System.Threading.Tasks.Parallel methods Pin
pr1mem0ver24-Oct-21 11:49
pr1mem0ver24-Oct-21 11:49 
AnswerRe: Seeking a better understanding of .NET multithreading and the System.Threading.Tasks.Parallel methods Pin
Gerry Schmitz23-Apr-21 7:07
mveGerry Schmitz23-Apr-21 7:07 
QuestionIPC Implementation for sending an integer from C++ exe to C# exe Pin
LokeshVarman22-Apr-21 22:32
LokeshVarman22-Apr-21 22:32 
QuestionRe: IPC Implementation for sending an integer from C++ exe to C# exe Pin
Richard MacCutchan22-Apr-21 23:05
mveRichard MacCutchan22-Apr-21 23:05 
AnswerRe: IPC Implementation for sending an integer from C++ exe to C# exe Pin
Victor Nijegorodov22-Apr-21 23:11
Victor Nijegorodov22-Apr-21 23:11 
GeneralRe: IPC Implementation for sending an integer from C++ exe to C# exe Pin
LokeshVarman23-Apr-21 0:06
LokeshVarman23-Apr-21 0:06 
QuestionHow to access incrementing ID number in SQL CE? Pin
Alex Dunlop22-Apr-21 5:49
Alex Dunlop22-Apr-21 5:49 
AnswerRe: How to access incrementing ID number in SQL CE? Pin
OriginalGriff22-Apr-21 6:08
mveOriginalGriff22-Apr-21 6:08 
AnswerRe: How to access incrementing ID number in SQL CE? Pin
Dave Kreskowiak22-Apr-21 6:23
mveDave Kreskowiak22-Apr-21 6:23 
AnswerRe: How to access incrementing ID number in SQL CE? Pin
SeanChupas22-Apr-21 6:43
SeanChupas22-Apr-21 6:43 
QuestionHow to preserve DataGridView row and text color when using column filters? Pin
Alex Dunlop21-Apr-21 4:49
Alex Dunlop21-Apr-21 4:49 
AnswerRe: How to preserve DataGridView row and text color when using column filters? Pin
Gerry Schmitz21-Apr-21 6:22
mveGerry Schmitz21-Apr-21 6:22 
GeneralRe: How to preserve DataGridView row and text color when using column filters? Pin
Alex Dunlop21-Apr-21 6:34
Alex Dunlop21-Apr-21 6:34 
GeneralRe: How to preserve DataGridView row and text color when using column filters? Pin
Gerry Schmitz21-Apr-21 6:45
mveGerry Schmitz21-Apr-21 6:45 
GeneralRe: How to preserve DataGridView row and text color when using column filters? Pin
Alex Dunlop21-Apr-21 16:53
Alex Dunlop21-Apr-21 16:53 
GeneralRe: How to preserve DataGridView row and text color when using column filters? Pin
Dave Kreskowiak21-Apr-21 17:27
mveDave Kreskowiak21-Apr-21 17:27 
Questionrecord list access Pin
Frank-Cziryek19-Apr-21 12:16
Frank-Cziryek19-Apr-21 12:16 
AnswerRe: record list access Pin
Dave Kreskowiak19-Apr-21 17:51
mveDave Kreskowiak19-Apr-21 17:51 
GeneralRe: record list access Pin
Frank-Cziryek19-Apr-21 19:43
Frank-Cziryek19-Apr-21 19:43 
GeneralRe: record list access Pin
Pete O'Hanlon20-Apr-21 20:55
mvePete O'Hanlon20-Apr-21 20:55 
Questionc# How to access data in an other object Pin
Frank-Cziryek19-Apr-21 2:29
Frank-Cziryek19-Apr-21 2:29 
Hi thank you for help.
In my modified instance I placed recordlist is a separate class to be able to access it from various classes but access issues occured. please help me to access the record list type thank you.
C#
  <pre>using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Collections.Generic;

namespace metjelentes
{
    class adatok
    {
        public string telepules = " ";
        public string ido = " ";
        public string szeliranyes_erosseg = " ";
        public int homerseklet = 0;
    }
    class adatlista
    {
        public List<adatok> lista = new List<adatok>();
    }
        class beolvasas
    {        
        public void beolvas()
         {
            string olvas = @"c:\Users\Public\textfiles\tavirathu13.txt";
            using (StreamReader sr =new StreamReader(olvas, Encoding.Default))
                {
                //StreamReader sr = new StreamReader(olvas, Encoding.Default);

                //List<adatok> lista = new List<adatok>();
                int db = 0;
                    while (!sr.EndOfStream)
                        {
                            string sor = sr.ReadLine();
                            string[] elemek = sor.Split(' ');
                            adatlista.lista.Add(new adatok());
                            adatlista.lista[db].telepules=elemek[0];
                            adatlista.lista[db].ido = elemek[1];
                            adatlista.lista[db].szeliranyes_erosseg = elemek[2];
                            adatlista.lista[db].homerseklet = Int32.Parse(elemek[3]);
                            db++;
                        }
                Random rd = new Random();
                int rand_num = rd.Next(1, db);
            }
          }
     }
    /* 
    class felhasznalo
    {
        foreach (string elem  beolvas.lista[])

    }*/
       class Program
        {
            static void Main(string[] args)
            {
                Console.WriteLine("Hello World!");
            }
        }
}


AnswerRe: c# How to access data in an other object Pin
OriginalGriff19-Apr-21 2:58
mveOriginalGriff19-Apr-21 2:58 

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.