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

C#

 
AnswerRe: Sql Transactions Pin
mrcooll2-Aug-08 2:53
mrcooll2-Aug-08 2:53 
AnswerRe: Sql Transactions Pin
PIEBALDconsult2-Aug-08 5:24
mvePIEBALDconsult2-Aug-08 5:24 
QuestionHow to forbid a control to get focus ? Pin
xu_xuthus1-Aug-08 23:55
xu_xuthus1-Aug-08 23:55 
AnswerRe: How to forbid a control to get focus ? Pin
PIEBALDconsult2-Aug-08 5:18
mvePIEBALDconsult2-Aug-08 5:18 
AnswerRe: How to forbid a control to get focus ? Pin
nelsonpaixao3-Aug-08 14:57
nelsonpaixao3-Aug-08 14:57 
QuestionNHibernate Pin
Puneet Bhatnagar1-Aug-08 23:18
Puneet Bhatnagar1-Aug-08 23:18 
AnswerRe: NHibernate Pin
Paul Conrad2-Aug-08 18:56
professionalPaul Conrad2-Aug-08 18:56 
QuestionCollections and sorting using an interface Pin
DaveyM691-Aug-08 21:55
professionalDaveyM691-Aug-08 21:55 
Finally got to a point where I need to use my own interface but got a bit stuck here.

I have a simple interface
public interface IStockItem : IComparable
{
    string StockCode { get; set; }
}

and two structs that implement it fully: SparePart and ServiceTool
and collections of the two structs SparePartCollection<SparePart> and ServiceToolCollection<ServiceTool>

Now I need to get all the SparePart and ServiceTool objects together and sort them by the StockCode property.

What's the best way to collate the object collections to one collection based on the interface, and how do I implement CompareTo on that collection?

Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)

AnswerRe: Collections and sorting using an interface Pin
User 66581-Aug-08 22:56
User 66581-Aug-08 22:56 
GeneralRe: Collections and sorting using an interface Pin
DaveyM692-Aug-08 2:29
professionalDaveyM692-Aug-08 2:29 
GeneralRe: Collections and sorting using an interface Pin
DaveyM692-Aug-08 4:11
professionalDaveyM692-Aug-08 4:11 
GeneralRe: Collections and sorting using an interface Pin
DaveyM692-Aug-08 4:48
professionalDaveyM692-Aug-08 4:48 
GeneralRe: Collections and sorting using an interface [modified] Pin
User 66582-Aug-08 5:06
User 66582-Aug-08 5:06 
GeneralRe: Collections and sorting using an interface Pin
DaveyM692-Aug-08 8:47
professionalDaveyM692-Aug-08 8:47 
GeneralRe: Collections and sorting using an interface Pin
DaveyM692-Aug-08 10:22
professionalDaveyM692-Aug-08 10:22 
Questionmeta file using C# Pin
algates00271-Aug-08 18:56
algates00271-Aug-08 18:56 
AnswerRe: meta file using C# Pin
Thomas Stockwell2-Aug-08 7:31
professionalThomas Stockwell2-Aug-08 7:31 
QuestionHow to find the Content datatype in a String Pin
K V Sekhar1-Aug-08 18:47
K V Sekhar1-Aug-08 18:47 
AnswerRe: How to find the Content datatype in a String Pin
Rajesh R Subramanian1-Aug-08 20:59
professionalRajesh R Subramanian1-Aug-08 20:59 
AnswerRe: How to find the Content datatype in a String Pin
DaveyM691-Aug-08 21:11
professionalDaveyM691-Aug-08 21:11 
AnswerRe: How to find the Content datatype in a String Pin
Anurag Gandhi1-Aug-08 21:51
professionalAnurag Gandhi1-Aug-08 21:51 
GeneralRe: How to find the Content datatype in a String Pin
K V Sekhar1-Aug-08 23:06
K V Sekhar1-Aug-08 23:06 
GeneralRe: How to find the Content datatype in a String Pin
Guffa1-Aug-08 23:35
Guffa1-Aug-08 23:35 
QuestionThe reason behind the differences of this.Font = fontdialog1.Font and btnTest.Font Pin
Lim Yuxuan1-Aug-08 18:37
Lim Yuxuan1-Aug-08 18:37 
AnswerRe: The reason behind the differences of this.Font = fontdialog1.Font and btnTest.Font Pin
Gideon Engelberth2-Aug-08 2:12
Gideon Engelberth2-Aug-08 2:12 

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.