Click here to Skip to main content
15,918,404 members
Home / Discussions / C#
   

C#

 
AnswerRe: Just a though about httpwebrequest Pin
Christian Graus5-Oct-06 16:26
protectorChristian Graus5-Oct-06 16:26 
GeneralRe: Just a though about httpwebrequest Pin
Anthony Mushrow5-Oct-06 20:41
professionalAnthony Mushrow5-Oct-06 20:41 
Questionis a byte array an octal number ? Pin
mmatteson5-Oct-06 12:20
mmatteson5-Oct-06 12:20 
AnswerRe: is a byte array an octal number ? Pin
Mike_V5-Oct-06 12:59
Mike_V5-Oct-06 12:59 
AnswerRe: is a byte array an octal number ? Pin
Christian Graus5-Oct-06 16:25
protectorChristian Graus5-Oct-06 16:25 
QuestionLicensing Component Pin
Aaron Schaefer5-Oct-06 11:23
Aaron Schaefer5-Oct-06 11:23 
QuestionGet a properties name via reflection Pin
Dan Neely5-Oct-06 10:28
Dan Neely5-Oct-06 10:28 
AnswerRe: Get a properties name via reflection Pin
S. Senthil Kumar6-Oct-06 5:44
S. Senthil Kumar6-Oct-06 5:44 
Maybe I misunderstood the question, but you already have the property name (targetObject.X). Why do you need it again?

BTW, you can also achieve the same effect by creating a delegate to PropertyInfo.SetValue[^]. The code would then look like

        class Test
        {

            int x;
            public int X
            {
                get {return x;}
                set {x = value; }
            }
        }

        delegate void XDelegate(object obj, object value, object[]index);
        
        static void Main(string[] args)
        {
            Test t = new Test();
            PropertyInfo propertyInfo = t.GetType().GetProperty("X");
            XDelegate xdel = new XDelegate(propertyInfo.SetValue);
            xdel(t, 2, null);

            Console.WriteLine(t.X);
        }



Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro

GeneralRe: Get a properties name via reflection Pin
Dan Neely6-Oct-06 16:10
Dan Neely6-Oct-06 16:10 
GeneralRe: Get a properties name via reflection Pin
S. Senthil Kumar6-Oct-06 19:20
S. Senthil Kumar6-Oct-06 19:20 
QuestionHow to use Collection.CopyTo? Pin
nicknotyet5-Oct-06 10:08
nicknotyet5-Oct-06 10:08 
AnswerRe: How to use Collection.CopyTo? Pin
S. Senthil Kumar6-Oct-06 5:51
S. Senthil Kumar6-Oct-06 5:51 
GeneralRe: How to use Collection.CopyTo? Pin
nicknotyet6-Oct-06 7:13
nicknotyet6-Oct-06 7:13 
GeneralRe: How to use Collection.CopyTo? Pin
S. Senthil Kumar6-Oct-06 19:14
S. Senthil Kumar6-Oct-06 19:14 
GeneralRe: How to use Collection.CopyTo? Pin
nicknotyet9-Oct-06 4:00
nicknotyet9-Oct-06 4:00 
QuestionActiveX in C# Pin
jjvainav5-Oct-06 9:54
jjvainav5-Oct-06 9:54 
QuestionRotate Text - Problem Pin
seq-5-Oct-06 9:52
seq-5-Oct-06 9:52 
AnswerRe: Rotate Text - Problem Pin
Christian Graus5-Oct-06 11:21
protectorChristian Graus5-Oct-06 11:21 
AnswerRe: Rotate Text - Problem Pin
Christian Graus5-Oct-06 11:22
protectorChristian Graus5-Oct-06 11:22 
GeneralRe: Rotate Text - Problem Pin
seq-5-Oct-06 11:46
seq-5-Oct-06 11:46 
GeneralRe: Rotate Text - Problem Pin
Christian Graus5-Oct-06 11:55
protectorChristian Graus5-Oct-06 11:55 
QuestionDetect events from another app? Pin
theog5-Oct-06 9:29
theog5-Oct-06 9:29 
QuestionHard Question about display screen Pin
Yanshof5-Oct-06 9:15
Yanshof5-Oct-06 9:15 
AnswerRe: Hard Question about display screen Pin
Chris Buckett5-Oct-06 9:27
Chris Buckett5-Oct-06 9:27 
GeneralI need to know how to do it ... and i dont need something Pin
Yanshof5-Oct-06 9:32
Yanshof5-Oct-06 9:32 

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.