Click here to Skip to main content
15,388,820 members
Home / Discussions / C#
   

C#

 
GeneralRe: Paralel QuickSort with 2 threads running at the same spped Pin
George Nistor18-Jan-13 22:49
MemberGeorge Nistor18-Jan-13 22:49 
GeneralRe: Paralel QuickSort with 2 threads running at the same spped Pin
Dave Kreskowiak19-Jan-13 3:27
mveDave Kreskowiak19-Jan-13 3:27 
QuestionDataSet to Dictionary Join? Pin
RickSharp17-Jan-13 12:25
MemberRickSharp17-Jan-13 12:25 
GeneralRe: DataSet to Dictionary Join? Pin
PIEBALDconsult17-Jan-13 12:34
professionalPIEBALDconsult17-Jan-13 12:34 
GeneralRe: DataSet to Dictionary Join? Pin
RickSharp17-Jan-13 12:51
MemberRickSharp17-Jan-13 12:51 
GeneralRe: DataSet to Dictionary Join? Pin
PIEBALDconsult17-Jan-13 13:03
professionalPIEBALDconsult17-Jan-13 13:03 
GeneralRe: DataSet to Dictionary Join? Pin
RickSharp17-Jan-13 13:13
MemberRickSharp17-Jan-13 13:13 
AnswerRe: DataSet to Dictionary Join? Pin
HuorSwords17-Jan-13 21:18
MemberHuorSwords17-Jan-13 21: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 7:02
MemberRickSharp18-Jan-13 7:02 
QuestionLinking files to a project Pin
PozzaVecia17-Jan-13 8:43
MemberPozzaVecia17-Jan-13 8:43 
GeneralRe: Linking files to a project Pin
PIEBALDconsult17-Jan-13 9:12
professionalPIEBALDconsult17-Jan-13 9:12 
GeneralRe: Linking files to a project Pin
PozzaVecia17-Jan-13 9:44
MemberPozzaVecia17-Jan-13 9:44 
QuestionError : System.DllNotFoundExpection Pin
mohammadkaab17-Jan-13 6:37
Membermohammadkaab17-Jan-13 6:37 
AnswerRe: Error : System.DllNotFoundExpection Pin
Jibesh17-Jan-13 7:14
professionalJibesh17-Jan-13 7:14 
GeneralRe: Error : System.DllNotFoundExpection Pin
mohammadkaab17-Jan-13 7:48
Membermohammadkaab17-Jan-13 7:48 
GeneralRe: Error : System.DllNotFoundExpection Pin
Jibesh17-Jan-13 7:53
professionalJibesh17-Jan-13 7:53 
Questioncalling a C# function with jquery ajax Pin
Hector Ubiera17-Jan-13 4:14
MemberHector Ubiera17-Jan-13 4:14 
AnswerRe: calling a C# function with jquery ajax Pin
Pete O'Hanlon17-Jan-13 6:30
mvaPete O'Hanlon17-Jan-13 6:30 
GeneralRe: calling a C# function with jquery ajax Pin
Hector Ubiera17-Jan-13 8:05
MemberHector Ubiera17-Jan-13 8:05 
QuestionStatic & Dynamic Polymorphism : distinguished in C# Pin
Member 883921917-Jan-13 3:29
MemberMember 883921917-Jan-13 3:29 
AnswerRe: Static & Dynamic Polymorphism : distinguished in C# Pin
Pete O'Hanlon17-Jan-13 3:46
mvaPete O'Hanlon17-Jan-13 3:46 
QuestionComposition implementation in C# Pin
Member 883921917-Jan-13 3:23
MemberMember 883921917-Jan-13 3:23 
QuestionRe: Composition implementation in C# Pin
Eddy Vluggen17-Jan-13 3:30
professionalEddy Vluggen17-Jan-13 3:30 
QuestionImplementation of Encapsulation & inheritance in c# Pin
Member 883921917-Jan-13 2:55
MemberMember 883921917-Jan-13 2:55 
AnswerRe: Implementation of Encapsulation & inheritance in c# Pin
Pete O'Hanlon17-Jan-13 3:02
mvaPete O'Hanlon17-Jan-13 3: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.