Click here to Skip to main content
15,569,319 members
Home / Discussions / C#
   

C#

 
GeneralRe: Paralel QuickSort with 2 threads running at the same spped Pin
George Nistor18-Jan-13 23:49
George Nistor18-Jan-13 23:49 
GeneralRe: Paralel QuickSort with 2 threads running at the same spped Pin
Dave Kreskowiak19-Jan-13 4:27
mveDave Kreskowiak19-Jan-13 4:27 
QuestionDataSet to Dictionary Join? Pin
RickSharp17-Jan-13 13:25
RickSharp17-Jan-13 13:25 
GeneralRe: DataSet to Dictionary Join? Pin
PIEBALDconsult17-Jan-13 13:34
professionalPIEBALDconsult17-Jan-13 13:34 
GeneralRe: DataSet to Dictionary Join? Pin
RickSharp17-Jan-13 13:51
RickSharp17-Jan-13 13:51 
GeneralRe: DataSet to Dictionary Join? Pin
PIEBALDconsult17-Jan-13 14:03
professionalPIEBALDconsult17-Jan-13 14:03 
GeneralRe: DataSet to Dictionary Join? Pin
RickSharp17-Jan-13 14:13
RickSharp17-Jan-13 14:13 
AnswerRe: DataSet to Dictionary Join? Pin
HuorSwords17-Jan-13 22:18
HuorSwords17-Jan-13 22:18 
C#
class Company
{
	public string Name { get; set; }
	
	public List<Loan> Loans { get; }
	
	// The other properties / columns goes here...
	
	// Constructor
	public Company()
	{
		this.Loans = new List<Loan>();
	}
}

class Loan
{
	public string CompanyName { get; set; }
	
	// The other properties / columns goes here...
}

static class Main()
{
	Dictionary<string, Company> companies = new Dictionary<string, Company>();
	
	foreach (DataRow row in companyDataSet.Tables["Company"].Rows)
        {		
		Company current = new Company();
		
		current.Name = row.CompanyName;
		// Fill here the other properties...
	}
	
	foreach (DataRow row in loanDataSet.Tables["Loan"].Rows)
        {
		Loan currentLoan = new Loan();
		currentLoan.CompanyName = row.CompanyName;
		// Fill here the other properties...
		
		companies[currentLoan.CompanyName].Loans.Add(currentLoan);
	}
	
	// FillGridViewWithDictionary(companies)...
}

GeneralRe: DataSet to Dictionary Join? Pin
RickSharp18-Jan-13 8:02
RickSharp18-Jan-13 8:02 
QuestionLinking files to a project Pin
PozzaVecia17-Jan-13 9:43
PozzaVecia17-Jan-13 9:43 
GeneralRe: Linking files to a project Pin
PIEBALDconsult17-Jan-13 10:12
professionalPIEBALDconsult17-Jan-13 10:12 
GeneralRe: Linking files to a project Pin
PozzaVecia17-Jan-13 10:44
PozzaVecia17-Jan-13 10:44 
QuestionError : System.DllNotFoundExpection Pin
mohammadkaab17-Jan-13 7:37
mohammadkaab17-Jan-13 7:37 
AnswerRe: Error : System.DllNotFoundExpection Pin
Jibesh17-Jan-13 8:14
professionalJibesh17-Jan-13 8:14 
GeneralRe: Error : System.DllNotFoundExpection Pin
mohammadkaab17-Jan-13 8:48
mohammadkaab17-Jan-13 8:48 
GeneralRe: Error : System.DllNotFoundExpection Pin
Jibesh17-Jan-13 8:53
professionalJibesh17-Jan-13 8:53 
Questioncalling a C# function with jquery ajax Pin
Hector Ubiera17-Jan-13 5:14
Hector Ubiera17-Jan-13 5:14 
AnswerRe: calling a C# function with jquery ajax Pin
Pete O'Hanlon17-Jan-13 7:30
mvaPete O'Hanlon17-Jan-13 7:30 
GeneralRe: calling a C# function with jquery ajax Pin
Hector Ubiera17-Jan-13 9:05
Hector Ubiera17-Jan-13 9:05 
QuestionStatic & Dynamic Polymorphism : distinguished in C# Pin
Member 883921917-Jan-13 4:29
Member 883921917-Jan-13 4:29 
AnswerRe: Static & Dynamic Polymorphism : distinguished in C# Pin
Pete O'Hanlon17-Jan-13 4:46
mvaPete O'Hanlon17-Jan-13 4:46 
QuestionComposition implementation in C# Pin
Member 883921917-Jan-13 4:23
Member 883921917-Jan-13 4:23 
QuestionRe: Composition implementation in C# Pin
Eddy Vluggen17-Jan-13 4:30
professionalEddy Vluggen17-Jan-13 4:30 
QuestionImplementation of Encapsulation & inheritance in c# Pin
Member 883921917-Jan-13 3:55
Member 883921917-Jan-13 3:55 
AnswerRe: Implementation of Encapsulation & inheritance in c# Pin
Pete O'Hanlon17-Jan-13 4:02
mvaPete O'Hanlon17-Jan-13 4:02 

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.