Click here to Skip to main content
15,920,005 members
Home / Discussions / C#
   

C#

 
AnswerRe: Detect Machine Shutdown Pin
Stefan Troschuetz19-Dec-06 23:55
Stefan Troschuetz19-Dec-06 23:55 
GeneralRe: Detect Machine Shutdown Pin
AB777120-Dec-06 2:14
AB777120-Dec-06 2:14 
AnswerRe: Detect Machine Shutdown Pin
kkadir20-Dec-06 2:01
kkadir20-Dec-06 2:01 
QuestionC1flexGrid Pin
sujithkumarsl19-Dec-06 23:10
sujithkumarsl19-Dec-06 23:10 
QuestionCopy Object In Memory Pin
Tristan Rhodes19-Dec-06 22:53
Tristan Rhodes19-Dec-06 22:53 
AnswerRe: Copy Object In Memory Pin
Bekjong19-Dec-06 23:33
Bekjong19-Dec-06 23:33 
GeneralRe: Copy Object In Memory Pin
Tristan Rhodes20-Dec-06 0:30
Tristan Rhodes20-Dec-06 0:30 
GeneralRe: Copy Object In Memory Pin
Bekjong20-Dec-06 1:22
Bekjong20-Dec-06 1:22 
I think you'll have to go for unmanaged code if you want it to perform. But I'm no expert. I found this piece of code to clone objects once, but I don't think it performs very well either.

static class Cloner
    {
        public delegate object CloneDelegate(object o);

        private static CloneDelegate cloner;

        public static T Clone<T>(T o)
        {
            if (cloner == null)
            {
                MethodInfo info = typeof(object).GetMethod("MemberwiseClone",
                    BindingFlags.Instance | BindingFlags.NonPublic);

                cloner = (CloneDelegate)
                    Delegate.CreateDelegate(typeof(CloneDelegate), null, info);
                Debug.Assert(cloner != null);
            }

            return (T)cloner(o);
        }
    }



Standards are great! Everybody should have one!

QuestionDataGridView with a RichTextBox Column (read only) Pin
fatamos19-Dec-06 22:47
fatamos19-Dec-06 22:47 
AnswerRe: DataGridView with a RichTextBox Column (read only) Pin
mrwisdom17-Dec-08 20:45
mrwisdom17-Dec-08 20:45 
QuestionC# Newbie needs help with Error Pin
wedtm19-Dec-06 22:47
wedtm19-Dec-06 22:47 
AnswerRe: C# Newbie needs help with Error [modified] Pin
althamda19-Dec-06 23:04
althamda19-Dec-06 23:04 
QuestionError?!! Pin
Nafiseh Salmani19-Dec-06 22:10
Nafiseh Salmani19-Dec-06 22:10 
AnswerRe: Error?!! Pin
Guffa19-Dec-06 22:26
Guffa19-Dec-06 22:26 
GeneralRe: Error?!! Pin
Nafiseh Salmani19-Dec-06 23:37
Nafiseh Salmani19-Dec-06 23:37 
AnswerRe: Error?!! Pin
Guffa20-Dec-06 1:47
Guffa20-Dec-06 1:47 
GeneralRe: Error?!! Pin
Dave Kreskowiak20-Dec-06 6:02
mveDave Kreskowiak20-Dec-06 6:02 
GeneralRe: Error?!! Pin
Nafiseh Salmani21-Dec-06 23:19
Nafiseh Salmani21-Dec-06 23:19 
QuestionInvoking events on a different thread... Pin
Shy Agam19-Dec-06 22:03
Shy Agam19-Dec-06 22:03 
AnswerRe: Invoking events on a different thread... Pin
Tristan Rhodes20-Dec-06 0:41
Tristan Rhodes20-Dec-06 0:41 
GeneralRe: Invoking events on a different thread... Pin
Shy Agam20-Dec-06 2:16
Shy Agam20-Dec-06 2:16 
GeneralRe: Invoking events on a different thread... Pin
Tristan Rhodes20-Dec-06 2:30
Tristan Rhodes20-Dec-06 2:30 
GeneralRe: Invoking events on a different thread... Pin
Shy Agam20-Dec-06 2:37
Shy Agam20-Dec-06 2:37 
GeneralRe: Invoking events on a different thread... Pin
Tristan Rhodes20-Dec-06 3:10
Tristan Rhodes20-Dec-06 3:10 
GeneralRe: Invoking events on a different thread... Pin
Shy Agam20-Dec-06 3:23
Shy Agam20-Dec-06 3: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.