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

C#

 
AnswerRe: Project Help Pin
Pete O'Hanlon25-Aug-10 13:07
mvePete O'Hanlon25-Aug-10 13:07 
AnswerRe: Project Help Pin
Luc Pattyn25-Aug-10 13:39
sitebuilderLuc Pattyn25-Aug-10 13:39 
GeneralRe: Project Help Pin
PIEBALDconsult25-Aug-10 15:17
mvePIEBALDconsult25-Aug-10 15:17 
GeneralRe: Project Help Pin
Luc Pattyn25-Aug-10 15:30
sitebuilderLuc Pattyn25-Aug-10 15:30 
QuestionRun Time Error in simple C# windows app [Solved] Pin
Abhishrek24-Aug-10 23:19
Abhishrek24-Aug-10 23:19 
AnswerRe: Run Time Error in simple C# windows app Pin
OriginalGriff24-Aug-10 23:46
mveOriginalGriff24-Aug-10 23:46 
GeneralRe: Run Time Error in simple C# windows app Pin
Abhishrek25-Aug-10 17:34
Abhishrek25-Aug-10 17:34 
AnswerRe: Run Time Error in simple C# windows app Pin
Bernhard Hiller25-Aug-10 0:03
Bernhard Hiller25-Aug-10 0:03 
GeneralRe: Run Time Error in simple C# windows app Pin
Sauro Viti25-Aug-10 2:21
professionalSauro Viti25-Aug-10 2:21 
GeneralRe: Run Time Error in simple C# windows app Pin
Luc Pattyn25-Aug-10 2:31
sitebuilderLuc Pattyn25-Aug-10 2:31 
GeneralRe: Run Time Error in simple C# windows app Pin
OriginalGriff25-Aug-10 2:59
mveOriginalGriff25-Aug-10 2:59 
GeneralRe: Run Time Error in simple C# windows app Pin
Luc Pattyn25-Aug-10 3:16
sitebuilderLuc Pattyn25-Aug-10 3:16 
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 

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.