Click here to Skip to main content
15,884,472 members
Home / Discussions / C#
   

C#

 
GeneralRe: please help me : How to call Pl sql function return record type in C# Pin
Christian Graus6-Oct-09 23:37
protectorChristian Graus6-Oct-09 23:37 
GeneralRe: please help me : How to call Pl sql function return record type in C# Pin
sampath_dr6-Oct-09 23:58
sampath_dr6-Oct-09 23:58 
QuestionGet screenshots Pin
yogeshdew6-Oct-09 22:13
yogeshdew6-Oct-09 22:13 
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 
Hi All,

I have a class named "C1" which has a property name "P1", which is declared as below in class.

Class C1
{
...
Account1[] P1;// Here Account1 is another class/type
...
}

Now i have created an object of "C1" using reflection as below.

// object
Type objTempType = Type.GetType("C1");
object objTempObject = Activator.CreateInstance(objTempType);

Now i want to set value of first item in "P1" property(An array property) of objTempObject using reflection, which i can do without reflection as per below.

objTempType.P1[0].SomeFieldinAccount1Class = SomeObjectOrValue;

Could any one of you please give me some direction on how is that possible.

I checked all the possible ways do it using property/reflection related classes in C#, also searched many sites and forums to get answer but without any success...

"You just become, like a flower becomes the fruit. It's all built in within you. Allow it to work out."

for more details visit :
http://www.freemeditation.ca/
http://www.sahajayoga.org

Akhilesh Singh

modified on Wednesday, August 26, 2009 5:41 AM

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 
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 

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.