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

C#

 
GeneralRe: Run Time Error in simple C# windows app Pin
OriginalGriff25-Aug-10 3:23
mveOriginalGriff25-Aug-10 3:23 
GeneralRe: Run Time Error in simple C# windows app Pin
DaveyM6925-Aug-10 3:38
professionalDaveyM6925-Aug-10 3:38 
GeneralRe: Run Time Error in simple C# windows app Pin
PIEBALDconsult25-Aug-10 15:26
mvePIEBALDconsult25-Aug-10 15:26 
GeneralRe: Run Time Error in simple C# windows app Pin
Luc Pattyn25-Aug-10 15:32
sitebuilderLuc Pattyn25-Aug-10 15:32 
GeneralRe: Run Time Error in simple C# windows app Pin
PIEBALDconsult25-Aug-10 18:44
mvePIEBALDconsult25-Aug-10 18:44 
GeneralRe: Run Time Error in simple C# windows app Pin
Abhishrek25-Aug-10 17:20
Abhishrek25-Aug-10 17:20 
GeneralRe: Run Time Error in simple C# windows app Pin
Abhishrek25-Aug-10 17:22
Abhishrek25-Aug-10 17:22 
QuestionWhat is the best way to do Clone to class that derived from Queue ( code attached ) Pin
Yanshof24-Aug-10 23:07
Yanshof24-Aug-10 23:07 
I have some class that derived from class queue ( generic namespace ) and i need to implement the IConable Interface.
Each object on the queue is implament the IClonable interface also.

Im not sure that my clone impementation of the queue derived class is the right way ...

The code:

<code>

public object Clone()
        {
            derivedFromQueueCollection retCollection = new derivedFromQueueCollection();

            lock( this )
            {
                ObjectOnQueue[] arr = ToArray();
                for( Int32 i = arr.Length ; i > 0 ; i-- )
                {
                    retCollection.Enqueue( arr[ i ].Clone() as ObjectOnQueue);
                }
            }

            return retCollection;
        }

</code>


modified on Wednesday, August 25, 2010 9:36 AM

AnswerRe: What is the best way to do Clone to class that derived from Queue ( code attached ) Pin
Eddy Vluggen25-Aug-10 7:43
professionalEddy Vluggen25-Aug-10 7:43 
QuestionMessage Removed Pin
24-Aug-10 22:10
Subrat Patnaik24-Aug-10 22:10 
AnswerPlease delete your other posts on this. Pin
Pete O'Hanlon24-Aug-10 22:18
mvePete O'Hanlon24-Aug-10 22:18 
GeneralMessage Removed Pin
24-Aug-10 23:24
Subrat Patnaik24-Aug-10 23:24 
GeneralRe: Please delete your other posts on this. Pin
R. Giskard Reventlov24-Aug-10 23:42
R. Giskard Reventlov24-Aug-10 23:42 
GeneralRe: Please delete your other posts on this. Pin
OriginalGriff25-Aug-10 1:20
mveOriginalGriff25-Aug-10 1:20 
GeneralRe: Please delete your other posts on this. Pin
Luc Pattyn25-Aug-10 1:48
sitebuilderLuc Pattyn25-Aug-10 1:48 
GeneralRe: Please delete your other posts on this. Pin
OriginalGriff25-Aug-10 1:52
mveOriginalGriff25-Aug-10 1:52 
Questioncode for instal my font to client machine when my setup run Pin
Member 274894524-Aug-10 20:07
Member 274894524-Aug-10 20:07 
AnswerRe: code for instal my font to client machine when my setup run Pin
phil.o24-Aug-10 20:41
professionalphil.o24-Aug-10 20:41 
GeneralRe: code for instal my font to client machine when my setup run Pin
DaveyM6924-Aug-10 21:22
professionalDaveyM6924-Aug-10 21:22 
GeneralRe: code for instal my font to client machine when my setup run Pin
Łukasz Nowakowski24-Aug-10 22:00
Łukasz Nowakowski24-Aug-10 22:00 
AnswerRe: code for instal my font to client machine when my setup run Pin
Abhinav S24-Aug-10 20:59
Abhinav S24-Aug-10 20:59 
AnswerRe: code for instal my font to client machine when my setup run Pin
Smithers-Jones25-Aug-10 3:40
Smithers-Jones25-Aug-10 3:40 
Questionhow to reference image Pin
netJP12L24-Aug-10 11:43
netJP12L24-Aug-10 11:43 
AnswerRe: how to reference image Pin
DaveyM6924-Aug-10 11:47
professionalDaveyM6924-Aug-10 11:47 
GeneralRe: how to reference image Pin
netJP12L25-Aug-10 2:23
netJP12L25-Aug-10 2:23 

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.