Click here to Skip to main content
15,904,416 members
Home / Discussions / C#
   

C#

 
GeneralRe: Get full HTML-code Pin
Martijn Verbakel18-Jul-09 0:51
Martijn Verbakel18-Jul-09 0:51 
QuestionHow do i know in which drive the operating system is installed in a c# application? Pin
CoderForEver17-Jul-09 23:20
CoderForEver17-Jul-09 23:20 
AnswerRe: How do i know in which drive the operating system is installed in a c# application? Pin
Luc Pattyn17-Jul-09 23:50
sitebuilderLuc Pattyn17-Jul-09 23:50 
GeneralRe: How do i know in which drive the operating system is installed in a c# application? Pin
Baeltazor18-Jul-09 0:37
Baeltazor18-Jul-09 0:37 
GeneralRe: How do i know in which drive the operating system is installed in a c# application? Pin
Luc Pattyn18-Jul-09 0:39
sitebuilderLuc Pattyn18-Jul-09 0:39 
JokeRe: How do i know in which drive the operating system is installed in a c# application? Pin
Mycroft Holmes18-Jul-09 0:49
professionalMycroft Holmes18-Jul-09 0:49 
GeneralRe: How do i know in which drive the operating system is installed in a c# application? Pin
Luc Pattyn18-Jul-09 0:54
sitebuilderLuc Pattyn18-Jul-09 0:54 
GeneralRe: How do i know in which drive the operating system is installed in a c# application? Pin
CoderForEver18-Jul-09 18:30
CoderForEver18-Jul-09 18:30 
QuestionHow can i play a flash(.swf) file in a c# application? Pin
CoderForEver17-Jul-09 23:14
CoderForEver17-Jul-09 23:14 
AnswerRe: How can i play a flash(.swf) file in a c# application? Pin
Mycroft Holmes18-Jul-09 0:52
professionalMycroft Holmes18-Jul-09 0:52 
AnswerRe: How can i play a flash(.swf) file in a c# application? Pin
vasanth arivali20-Jul-09 19:15
vasanth arivali20-Jul-09 19:15 
GeneralRe: How can i play a flash(.swf) file in a c# application? Pin
CoderForEver22-Jul-09 1:44
CoderForEver22-Jul-09 1:44 
GeneralRe: How can i play a flash(.swf) file in a c# application? Pin
CoderForEver22-Jul-09 2:15
CoderForEver22-Jul-09 2:15 
GeneralRe: How can i play a flash(.swf) file in a c# application? Pin
vasanth arivali22-Jul-09 3:25
vasanth arivali22-Jul-09 3:25 
GeneralRe: How can i play a flash(.swf) file in a c# application? Pin
Said Ali Jalali28-Sep-09 4:41
Said Ali Jalali28-Sep-09 4:41 
QuestionUpload Pic... Pin
mjawadkhatri17-Jul-09 21:07
mjawadkhatri17-Jul-09 21:07 
AnswerRe: Upload Pic... Pin
Manas Bhardwaj17-Jul-09 22:30
professionalManas Bhardwaj17-Jul-09 22:30 
GeneralRe: Upload Pic... Pin
mjawadkhatri18-Jul-09 0:23
mjawadkhatri18-Jul-09 0:23 
GeneralRe: Upload Pic... Pin
Manas Bhardwaj18-Jul-09 8:20
professionalManas Bhardwaj18-Jul-09 8:20 
QuestionHow to add...... Pin
mjawadkhatri17-Jul-09 18:53
mjawadkhatri17-Jul-09 18:53 
AnswerRe: How to add...... Pin
K030617-Jul-09 19:15
K030617-Jul-09 19:15 
QuestionMultiple Field Sorting C# Pin
dsrao17-Jul-09 18:46
dsrao17-Jul-09 18:46 
Hi All,

I want to sort collections..


// Class

public class Item
{

public String Name{get;set;}
public int Cost{get;set;}

public Item(string name,int cost)
{
Name=name;
Cost=cost;
}
}

// Collection of Data

List<item> items=new List<item>();
items.Add(New Item("House",100));
items.Add(New Item("Car",80));
items.Add(New Item("Dog",10));
items.Add(New Item("Car",50));
items.Add(New Item("Cycle",25));
items.Add(New Item("Car",120));

Note:
Provide code to sort a collection of Item. The code should sort the Item collection only one time, following this rule: The Items should be ordered by their names (following the standard C# API for string ordering), but if two Items have the same name, then those Items should be ordered by their cost, with the lower cost item to appear before the higher cost item.

I appreciate somebody provide solution for the same.

Thanks & Regards
Rao

AnswerRe: Multiple Field Sorting C# Pin
Uri Lavi17-Jul-09 19:26
Uri Lavi17-Jul-09 19:26 
GeneralRe: Multiple Field Sorting C# Pin
dsrao18-Jul-09 9:12
dsrao18-Jul-09 9:12 
AnswerRe: Multiple Field Sorting C# Pin
riced17-Jul-09 20:49
riced17-Jul-09 20:49 

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.