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

C#

 
AnswerRe: video chat Pin
Luc Pattyn27-Aug-10 2:10
sitebuilderLuc Pattyn27-Aug-10 2:10 
Questionthe transparency goes when the panel is invalidated Pin
prasadbuddhika26-Aug-10 21:27
prasadbuddhika26-Aug-10 21:27 
AnswerRe: the transparency goes when the panel is invalidated Pin
OriginalGriff26-Aug-10 22:07
mveOriginalGriff26-Aug-10 22:07 
GeneralRe: the transparency goes when the panel is invalidated Pin
prasadbuddhika26-Aug-10 22:22
prasadbuddhika26-Aug-10 22:22 
GeneralRe: the transparency goes when the panel is invalidated Pin
OriginalGriff26-Aug-10 22:23
mveOriginalGriff26-Aug-10 22:23 
GeneralRe: the transparency goes when the panel is invalidated Pin
prasadbuddhika26-Aug-10 22:39
prasadbuddhika26-Aug-10 22:39 
GeneralRe: the transparency goes when the panel is invalidated Pin
prasadbuddhika27-Aug-10 1:47
prasadbuddhika27-Aug-10 1:47 
QuestionSolved: Collection explicit conversion operator recommendation [modified] Pin
DaveyM6926-Aug-10 11:57
professionalDaveyM6926-Aug-10 11:57 
I have a custom collection which wraps a List<T>. I want to provide a conversion operator for the consumers convenience to List<T> but would you recommend:

1. Just returning the innerList
public static explicit operator List<T>(MyList<T> myList)
{
    return myList.innerList
}

2. Cloning by creating a new List<T> from the innerList
public static explicit operator List<T>(MyList<T> myList)
{
    return new List<T>(myList);
}
?
Obviously the first is way faster, but then any changes after an explicit cast would also be reflected in the collection :undecided:
Dave

If this helped, please vote & accept answer!


Binging is like googling, it just feels dirtier.
Please take your VB.NET out of our nice case sensitive forum.(Pete O'Hanlon)

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

modified on Thursday, August 26, 2010 7:03 PM

AnswerRe: Collection explicit conversion operator recommendation Pin
AspDotNetDev26-Aug-10 12:07
protectorAspDotNetDev26-Aug-10 12:07 
GeneralRe: Collection explicit conversion operator recommendation Pin
DaveyM6926-Aug-10 12:22
professionalDaveyM6926-Aug-10 12:22 
GeneralRe: Collection explicit conversion operator recommendation Pin
AspDotNetDev26-Aug-10 12:46
protectorAspDotNetDev26-Aug-10 12:46 
GeneralRe: Collection explicit conversion operator recommendation Pin
DaveyM6926-Aug-10 13:06
professionalDaveyM6926-Aug-10 13:06 
AnswerRe: Collection explicit conversion operator recommendation Pin
Pete O'Hanlon26-Aug-10 12:43
mvePete O'Hanlon26-Aug-10 12:43 
GeneralRe: Collection explicit conversion operator recommendation Pin
DaveyM6926-Aug-10 13:05
professionalDaveyM6926-Aug-10 13:05 
AnswerRe: Collection explicit conversion operator recommendation Pin
Luc Pattyn26-Aug-10 12:45
sitebuilderLuc Pattyn26-Aug-10 12:45 
GeneralRe: Collection explicit conversion operator recommendation Pin
DaveyM6926-Aug-10 13:05
professionalDaveyM6926-Aug-10 13:05 
GeneralRe: Collection explicit conversion operator recommendation Pin
Luc Pattyn26-Aug-10 13:10
sitebuilderLuc Pattyn26-Aug-10 13:10 
AnswerSolved: Collection explicit conversion operator recommendation Pin
DaveyM6926-Aug-10 13:03
professionalDaveyM6926-Aug-10 13:03 
QuestionSOLVED: Hide subitem in standard listview [modified] Pin
Marcel Vreuls (www.agentbase.nl)26-Aug-10 11:48
Marcel Vreuls (www.agentbase.nl)26-Aug-10 11:48 
AnswerMessage Closed Pin
26-Aug-10 20:37
stancrm26-Aug-10 20:37 
GeneralRe: Hide subitem in standard listview Pin
Marcel Vreuls (www.agentbase.nl)27-Aug-10 0:19
Marcel Vreuls (www.agentbase.nl)27-Aug-10 0:19 
QuestionHow to get url from browser to C# application Pin
Saint_pl26-Aug-10 11:14
Saint_pl26-Aug-10 11:14 
AnswerRe: How to get url from browser to C# application Pin
Luc Pattyn26-Aug-10 13:41
sitebuilderLuc Pattyn26-Aug-10 13:41 
AnswerRe: How to get url from browser to C# application Pin
Saint_pl26-Aug-10 13:51
Saint_pl26-Aug-10 13:51 
GeneralRe: How to get url from browser to C# application Pin
#realJSOP27-Aug-10 2:21
mve#realJSOP27-Aug-10 2:21 

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.