Click here to Skip to main content
16,005,120 members
Home / Discussions / C#
   

C#

 
GeneralRe: Java to C# conversion Pin
Ravenet16-Feb-08 1:57
Ravenet16-Feb-08 1:57 
Questionhow to push sbyte[] information in to httpResponse object. Pin
monk8215-Feb-08 15:25
monk8215-Feb-08 15:25 
AnswerRe: how to push sbyte[] information in to httpResponse object. Pin
Guffa16-Feb-08 0:27
Guffa16-Feb-08 0:27 
GeneralRe: how to push sbyte[] information in to httpResponse object. Pin
monk8218-Feb-08 15:47
monk8218-Feb-08 15:47 
GeneralHaving trouble with references. :( Pin
methhoo15-Feb-08 14:43
methhoo15-Feb-08 14:43 
GeneralRe: Having trouble with references. :( Pin
Christian Graus15-Feb-08 22:36
protectorChristian Graus15-Feb-08 22:36 
GeneralRe: Having trouble with references. :( Pin
DaveyM6915-Feb-08 22:38
professionalDaveyM6915-Feb-08 22:38 
GeneralRe: Having trouble with references. :( Pin
Luc Pattyn16-Feb-08 1:39
sitebuilderLuc Pattyn16-Feb-08 1:39 
Hi,

the way you go about this seems wrong to me. You have four different kinds of objects,
so there should be four classes, probably all deriving from one common class, say:
class Shape { ... }
 
class Rect : Shape { ... }
 
class ZShape : Shape { ... }
 
class LShape : Shape { ... }
 
class LongShape : Shape { ... }


Now put common methods in Shape, and specific ones in the specific classes; then
create a new shape whenever you need one by instantiating the right class.

In this way, you never need to copy or clone an existing object.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.


GeneralAsyncCallback threading issue Pin
pokabot15-Feb-08 13:53
pokabot15-Feb-08 13:53 
GeneralRe: AsyncCallback threading issue Pin
Luc Pattyn15-Feb-08 14:34
sitebuilderLuc Pattyn15-Feb-08 14:34 
GeneralRe: AsyncCallback threading issue Pin
Ravenet16-Feb-08 2:00
Ravenet16-Feb-08 2:00 
GeneralGetting attributes of an mp3 file Pin
Jordanwb15-Feb-08 13:09
Jordanwb15-Feb-08 13:09 
GeneralRe: Getting attributes of an mp3 file Pin
Christian Graus15-Feb-08 22:39
protectorChristian Graus15-Feb-08 22:39 
GeneralRe: Getting attributes of an mp3 file Pin
Darkmoor16-Feb-08 5:37
Darkmoor16-Feb-08 5:37 
GeneralRe: Getting attributes of an mp3 file [modified] Pin
Jordanwb16-Feb-08 8:14
Jordanwb16-Feb-08 8:14 
QuestionIs type Foo? Pin
Judah Gabriel Himango15-Feb-08 11:55
sponsorJudah Gabriel Himango15-Feb-08 11:55 
AnswerRe: Is type Foo? Pin
Luc Pattyn15-Feb-08 13:41
sitebuilderLuc Pattyn15-Feb-08 13:41 
GeneralRe: Is type Foo? Pin
Judah Gabriel Himango18-Feb-08 6:53
sponsorJudah Gabriel Himango18-Feb-08 6:53 
GeneralRe: Is type Foo? Pin
Luc Pattyn18-Feb-08 8:44
sitebuilderLuc Pattyn18-Feb-08 8:44 
AnswerRe: Is type Foo? Pin
Guffa15-Feb-08 13:47
Guffa15-Feb-08 13:47 
GeneralRe: Is type Foo? Pin
Judah Gabriel Himango18-Feb-08 6:56
sponsorJudah Gabriel Himango18-Feb-08 6:56 
Question[Message Deleted] Pin
KONE BREAD15-Feb-08 11:08
KONE BREAD15-Feb-08 11:08 
GeneralRe: Argument '1': cannot convert from 'Project_1.SharedMsg' to 'Project_1.SharedClick' Pin
Skippums15-Feb-08 11:31
Skippums15-Feb-08 11:31 
GeneralXMP in PDF Pin
User 316449915-Feb-08 10:19
User 316449915-Feb-08 10:19 
GeneralRe: XMP in PDF Pin
Christian Graus15-Feb-08 10:37
protectorChristian Graus15-Feb-08 10:37 

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.