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

C#

 
GeneralRe: How to get instantiated object from a string Pin
Al Beback22-May-08 3:06
Al Beback22-May-08 3:06 
QuestionPDF to HTML/XLS Source Code Pin
Heracles Choe21-May-08 18:06
Heracles Choe21-May-08 18:06 
AnswerRe: PDF to HTML/XLS Source Code Pin
Christian Graus21-May-08 18:39
protectorChristian Graus21-May-08 18:39 
Question.NET Assemblies for Accpac Pin
Illegal Operation21-May-08 17:36
Illegal Operation21-May-08 17:36 
QuestionCloning Pin
ADTC#21-May-08 17:26
ADTC#21-May-08 17:26 
AnswerRe: Cloning Pin
Ennis Ray Lynch, Jr.21-May-08 17:37
Ennis Ray Lynch, Jr.21-May-08 17:37 
QuestionRe: Cloning Pin
ADTC#21-May-08 17:41
ADTC#21-May-08 17:41 
AnswerRe: Cloning Pin
Ennis Ray Lynch, Jr.21-May-08 17:48
Ennis Ray Lynch, Jr.21-May-08 17:48 
Here is a sample:

define an object called customer.
define an object called order.

//Customer Object
public object Clone(){
    //Use this line if there are a lot of value type members
    Customer customer = (Customer)MemberwiseClone();
    customer.mOrders = new List<order>();
    foreach(Order order in Orders){
        //Alternatively use AddAt to preserve location
        customer.mOrders.Add((Order)order.Clone());
    }
    return customer;
}


Need a C# Consultant? I'm available.


Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway


QuestionSimple question on maintaining sql server's table datastructure Pin
xbiplav21-May-08 17:20
xbiplav21-May-08 17:20 
AnswerRe: Simple question on maintaining sql server's table datastructure Pin
Laddie21-May-08 19:39
Laddie21-May-08 19:39 
QuestionMerging Graphics Pin
Xmen Real 21-May-08 16:06
professional Xmen Real 21-May-08 16:06 
AnswerRe: Merging Graphics Pin
Christian Graus21-May-08 16:37
protectorChristian Graus21-May-08 16:37 
AnswerRe: Merging Graphics Pin
Anthony Mushrow21-May-08 16:38
professionalAnthony Mushrow21-May-08 16:38 
GeneralRe: Merging Graphics Pin
Xmen Real 21-May-08 16:43
professional Xmen Real 21-May-08 16:43 
GeneralRe: Merging Graphics Pin
Christian Graus21-May-08 17:20
protectorChristian Graus21-May-08 17:20 
GeneralTieing data in a general DataView to a DataTable Pin
MAW3021-May-08 16:05
MAW3021-May-08 16:05 
QuestionHelp With XML Reading Pin
That Asian Guy21-May-08 14:58
That Asian Guy21-May-08 14:58 
QuestionDrop-List Pin
nelsonpaixao21-May-08 14:51
nelsonpaixao21-May-08 14:51 
AnswerRe: Drop-List Pin
Judah Gabriel Himango21-May-08 17:15
sponsorJudah Gabriel Himango21-May-08 17:15 
AnswerRe: Drop-List Pin
DaveyM6922-May-08 10:43
professionalDaveyM6922-May-08 10:43 
QuestionException Handling Pin
MarkB77721-May-08 13:57
MarkB77721-May-08 13:57 
AnswerRe: Exception Handling Pin
Christian Graus21-May-08 14:04
protectorChristian Graus21-May-08 14:04 
AnswerRe: Exception Handling Pin
Ennis Ray Lynch, Jr.21-May-08 17:43
Ennis Ray Lynch, Jr.21-May-08 17:43 
QuestionProblem with Form_Paint and using Trig Pin
RedHotFunk21-May-08 13:40
RedHotFunk21-May-08 13:40 
AnswerRe: Problem with Form_Paint and using Trig Pin
Judah Gabriel Himango21-May-08 17:14
sponsorJudah Gabriel Himango21-May-08 17:14 

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.