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

C#

 
GeneralRe: Converting Multipage Tiff files into PDF files Pin
meeram39525-Apr-11 22:54
meeram39525-Apr-11 22:54 
GeneralRe: Converting Multipage Tiff files into PDF files Pin
Kraeven25-Apr-11 23:03
Kraeven25-Apr-11 23:03 
QuestionHow to open image without show picturebox style Pin
parsnet4u25-Apr-11 20:52
parsnet4u25-Apr-11 20:52 
AnswerRe: How to open image without show picturebox style Pin
ambarishtv28-Apr-11 5:53
ambarishtv28-Apr-11 5:53 
QuestionHow to Pass the Value of Object Pin
Anubhava Dimri25-Apr-11 20:43
Anubhava Dimri25-Apr-11 20:43 
AnswerRe: How to Pass the Value of Object Pin
meeram39525-Apr-11 21:16
meeram39525-Apr-11 21:16 
AnswerRe: How to Pass the Value of Object Pin
Abhinav S25-Apr-11 21:19
Abhinav S25-Apr-11 21:19 
AnswerRe: How to Pass the Value of Object [modified] Pin
Ravi Sant26-Apr-11 0:29
Ravi Sant26-Apr-11 0:29 
########## Please see the modified solution below ##########

Include this method in one of your class:

public static void CopyTo(object S, object T)
        {
            foreach (var pS in S.GetType().GetProperties())
            {
                foreach (var pT in T.GetType().GetProperties())
                {
                    if (pT.Name != pS.Name) continue;
                    (pT.GetSetMethod()).Invoke(T, new object[] { pS.GetGetMethod().Invoke(S, null) });
                }
            };
        }



I hope this is helpful Smile | :)
♫ 99 little bugs in the code,
99 bugs in the code
We fix a bug, compile it again
101 little bugs in the code ♫

GeneralRe: How to Pass the Value of Object Pin
David198726-Apr-11 0:32
David198726-Apr-11 0:32 
GeneralRe: How to Pass the Value of Object Pin
Ravi Sant26-Apr-11 4:18
Ravi Sant26-Apr-11 4:18 
GeneralRe: How to Pass the Value of Object Pin
PIEBALDconsult26-Apr-11 2:48
mvePIEBALDconsult26-Apr-11 2:48 
GeneralRe: How to Pass the Value of Object Pin
Ravi Sant26-Apr-11 4:18
Ravi Sant26-Apr-11 4:18 
AnswerRe: How to Pass the Value of Object Pin
Shameel26-Apr-11 1:56
professionalShameel26-Apr-11 1:56 
AnswerRe: How to Pass the Value of Object Pin
PIEBALDconsult26-Apr-11 2:49
mvePIEBALDconsult26-Apr-11 2:49 
AnswerRe: How to Pass the Value of Object Pin
Ravi Sant26-Apr-11 4:33
Ravi Sant26-Apr-11 4:33 
AnswerRe: How to Pass the Value of Object Pin
Sanjay J Patolia27-Apr-11 16:09
Sanjay J Patolia27-Apr-11 16:09 
Questionshowing newly added row in datagridview - Winforms Pin
manumith25-Apr-11 10:09
manumith25-Apr-11 10:09 
AnswerRe: showing newly added row in datagridview - Winforms Pin
Not Active25-Apr-11 10:40
mentorNot Active25-Apr-11 10:40 
GeneralRe: showing newly added row in datagridview - Winforms Pin
manumith25-Apr-11 10:43
manumith25-Apr-11 10:43 
GeneralRe: showing newly added row in datagridview - Winforms Pin
Not Active25-Apr-11 11:49
mentorNot Active25-Apr-11 11:49 
GeneralRe: showing newly added row in datagridview - Winforms Pin
manumith25-Apr-11 13:04
manumith25-Apr-11 13:04 
GeneralRe: showing newly added row in datagridview - Winforms Pin
Richard MacCutchan25-Apr-11 22:08
mveRichard MacCutchan25-Apr-11 22:08 
GeneralRe: showing newly added row in datagridview - Winforms Pin
Pete O'Hanlon25-Apr-11 22:38
mvePete O'Hanlon25-Apr-11 22:38 
AnswerRe: showing newly added row in datagridview - Winforms Pin
Luc Pattyn25-Apr-11 11:11
sitebuilderLuc Pattyn25-Apr-11 11:11 
Question.NET Collections - Capacity [modified] Pin
devvvy25-Apr-11 1:03
devvvy25-Apr-11 1:03 

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.