Click here to Skip to main content
15,903,362 members
Home / Discussions / C#
   

C#

 
GeneralRe: "Bad Form" to use public class variables without get & set? Pin
Nemanja Trifunovic2-Aug-04 8:18
Nemanja Trifunovic2-Aug-04 8:18 
GeneralRe: "Bad Form" to use public class variables without get & set? Pin
Nick Parker2-Aug-04 8:48
protectorNick Parker2-Aug-04 8:48 
QuestionHow to change error icon shown in datagrid cells Pin
Kasdoffe2-Aug-04 5:43
Kasdoffe2-Aug-04 5:43 
Generalservices with gui Pin
elraton2-Aug-04 5:26
elraton2-Aug-04 5:26 
GeneralRe: services with gui Pin
Colin Angus Mackay2-Aug-04 8:12
Colin Angus Mackay2-Aug-04 8:12 
GeneralCustom Control leaps to 0,0 on F5 Pin
ddelapasse2-Aug-04 5:26
ddelapasse2-Aug-04 5:26 
GeneralProblem with string.Replace() and antislashes... Pin
polkiujhy2-Aug-04 4:58
polkiujhy2-Aug-04 4:58 
GeneralRe: Problem with string.Replace() and antislashes... Pin
Michael P Butler2-Aug-04 6:15
Michael P Butler2-Aug-04 6:15 
GeneralCuston TrackBar Pin
Guinness4Strength2-Aug-04 4:11
Guinness4Strength2-Aug-04 4:11 
GeneralRe: Custon TrackBar Pin
leppie2-Aug-04 4:16
leppie2-Aug-04 4:16 
GeneralRe: Custon TrackBar Pin
Guinness4Strength2-Aug-04 9:22
Guinness4Strength2-Aug-04 9:22 
GeneralRe: Custon TrackBar Pin
Guinness4Strength2-Aug-04 9:34
Guinness4Strength2-Aug-04 9:34 
GeneralPropertyGrid Pin
blankg2-Aug-04 2:03
blankg2-Aug-04 2:03 
GeneralRe: PropertyGrid Pin
Nick Parker2-Aug-04 3:35
protectorNick Parker2-Aug-04 3:35 
GeneralXml Serialization and Interfaces... Pin
mgaerber2-Aug-04 1:00
mgaerber2-Aug-04 1:00 
GeneralRe: Xml Serialization and Interfaces... Pin
leppie2-Aug-04 1:03
leppie2-Aug-04 1:03 
GeneralRe: Xml Serialization and Interfaces... Pin
mgaerber2-Aug-04 1:36
mgaerber2-Aug-04 1:36 
GeneralRe: Xml Serialization and Interfaces... Pin
leppie2-Aug-04 4:13
leppie2-Aug-04 4:13 
GeneralRe: Xml Serialization and Interfaces... Pin
mgaerber12-Aug-04 23:10
mgaerber12-Aug-04 23:10 
GeneralReflection and array´s... Pin
Norman-Timo2-Aug-04 0:43
Norman-Timo2-Aug-04 0:43 
GeneralRe: Reflection and array´s... Pin
leppie2-Aug-04 1:01
leppie2-Aug-04 1:01 
GeneralRe: Reflection and array´s... Pin
leppie2-Aug-04 1:08
leppie2-Aug-04 1:08 
GeneralRe: Reflection and array´s... Pin
Norman-Timo2-Aug-04 1:30
Norman-Timo2-Aug-04 1:30 
Thanx for the very fast help, but there are compiler errors in your hint.

p.Invoke... (-> 'System.Reflection.PropertyInfo' does not contain a definition for 'Invoke')

Are there framework differences? I use framework 1.1!

But I tried somithing similar and I only got Exceptions like that:

"An unhandled exception of type 'System.Reflection.TargetException' occurred in mscorlib.dll

Additional information: Object does not match target type.
"

the Exception is trown with following lines:
FieldInfo testInfo = testType.GetField("FLATNESS");
Type fieldType = testInfo.FieldType;
PropertyInfo p = fieldType.GetProperty("Length");

int iii = (int) p.GetValue(testInvoke, null); // -> ********** Exception!

Please help me (I can´t [under]stand this thing!)

Norman-Timo


GeneralRe: Reflection and array´s... Pin
leppie2-Aug-04 4:14
leppie2-Aug-04 4:14 
GeneralRe: Reflection and array´s... Pin
Norman-Timo2-Aug-04 20:00
Norman-Timo2-Aug-04 20:00 

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.