Click here to Skip to main content
15,890,381 members
Home / Discussions / C#
   

C#

 
AnswerRe: Get screenshots Pin
Christian Graus6-Oct-09 22:18
protectorChristian Graus6-Oct-09 22:18 
GeneralRe: Get screenshots Pin
yogeshdew6-Oct-09 22:57
yogeshdew6-Oct-09 22:57 
AnswerRe: Get screenshots Pin
PIEBALDconsult7-Oct-09 4:39
mvePIEBALDconsult7-Oct-09 4:39 
GeneralRe: Get screenshots Pin
yogeshdew7-Oct-09 5:13
yogeshdew7-Oct-09 5:13 
QuestionHow to set an item in a object's property(of array type) using Reflection Pin
here2learn6-Oct-09 22:12
here2learn6-Oct-09 22:12 
AnswerRe: How to set an item in a object's property(of array type) using Reflection Pin
Nissim Salomon6-Oct-09 22:41
Nissim Salomon6-Oct-09 22:41 
GeneralRe: How to set an item in a object's property(of array type) using Reflection Pin
here2learn6-Oct-09 22:46
here2learn6-Oct-09 22:46 
AnswerRe: How to set an item in a object's property(of array type) using Reflection Pin
Mirko19806-Oct-09 23:47
Mirko19806-Oct-09 23:47 
You can use the Array class when operating on array properties with reflection.

Using only refection, what you want to achieve is done like this:
Type objTempType = Type.GetType("C1");
object objTempObject = Activator.CreateInstance(objTempType);

PropertyInfo p1Property = objTempType.GetProperty("P1");
Array p1ArrayValue = p1Property.GetValue(objTempObject, null) as Array;

Type itemType = p1ArrayValue.GetType().GetElementType();
object itemValue = p1ArrayValue.GetValue(0);

PropertyInfo someFieldProperty = itemType.GetProperty("SomeFieldinAccount1Class");
someFieldProperty.SetValue(itemValue, SomeObjectOrValue, null);

GeneralRe: How to set an item in a object's property(of array type) using Reflection Pin
here2learn7-Oct-09 2:08
here2learn7-Oct-09 2:08 
GeneralRe: How to set an item in a object's property(of array type) using Reflection Pin
Mirko19807-Oct-09 2:48
Mirko19807-Oct-09 2:48 
QuestionHow to get item clicked event for ContextMenus Dropdown item clicked Pin
AhmedMasum6-Oct-09 21:50
AhmedMasum6-Oct-09 21:50 
AnswerRe: How to get item clicked event for ContextMenus Dropdown item clicked Pin
Saksida Bojan6-Oct-09 22:10
Saksida Bojan6-Oct-09 22:10 
GeneralRe: How to get item clicked event for ContextMenus Dropdown item clicked Pin
AhmedMasum7-Oct-09 2:07
AhmedMasum7-Oct-09 2:07 
QuestionQuery Exchange Server 2003 Question [modified] Pin
Programm3r6-Oct-09 20:16
Programm3r6-Oct-09 20:16 
QuestionRe: Query Exchange Server 2003 Question Pin
Programm3r6-Oct-09 21:46
Programm3r6-Oct-09 21:46 
AnswerRe: Query Exchange Server 2003 Question Pin
N a v a n e e t h6-Oct-09 22:23
N a v a n e e t h6-Oct-09 22:23 
GeneralRe: Query Exchange Server 2003 Question Pin
Programm3r6-Oct-09 22:50
Programm3r6-Oct-09 22:50 
QuestionRe: Query Exchange Server 2003 Question Pin
Programm3r6-Oct-09 23:46
Programm3r6-Oct-09 23:46 
AnswerRe: Query Exchange Server 2003 Question Pin
N a v a n e e t h7-Oct-09 5:04
N a v a n e e t h7-Oct-09 5:04 
QuestionErrorProvider SetError string constraint Pin
sysdeamon6-Oct-09 20:15
sysdeamon6-Oct-09 20:15 
AnswerRe: ErrorProvider SetError string constraint Pin
stancrm6-Oct-09 20:55
stancrm6-Oct-09 20:55 
AnswerRe: ErrorProvider SetError string constraint Pin
sysdeamon6-Oct-09 21:17
sysdeamon6-Oct-09 21:17 
QuestionMerge PDF Files Pin
Abdul Rahman Hamidy6-Oct-09 19:39
Abdul Rahman Hamidy6-Oct-09 19:39 
AnswerRe: Merge PDF Files Pin
stancrm6-Oct-09 20:54
stancrm6-Oct-09 20:54 
Questionhow to receive & delete mail in pop3 server Pin
fgfdhghgfd6-Oct-09 19:14
fgfdhghgfd6-Oct-09 19: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.