Click here to Skip to main content
15,913,773 members
Home / Discussions / C#
   

C#

 
GeneralGet Stream File Location Pin
sabrown1001-Jan-08 11:47
sabrown1001-Jan-08 11:47 
GeneralRe: Get Stream File Location Pin
J. Dunlap1-Jan-08 12:12
J. Dunlap1-Jan-08 12:12 
QuestionHow To Determine Paint.NET version Pin
sabrown1001-Jan-08 7:56
sabrown1001-Jan-08 7:56 
AnswerRe: How To Determine Paint.NET version Pin
Judah Gabriel Himango1-Jan-08 9:18
sponsorJudah Gabriel Himango1-Jan-08 9:18 
GeneralInherited User Control [modified] Pin
beatles16921-Jan-08 4:57
beatles16921-Jan-08 4:57 
GeneralRe: Urgent!!!! Inherited User Control Pin
Muammar©1-Jan-08 6:26
Muammar©1-Jan-08 6:26 
GeneralRe: Urgent!!!! Inherited User Control Pin
beatles16921-Jan-08 6:32
beatles16921-Jan-08 6:32 
GeneralRe: Urgent!!!! Inherited User Control Pin
Richard Andrew x641-Jan-08 10:37
professionalRichard Andrew x641-Jan-08 10:37 
GeneralWorking with LicenseProviderAttribute Pin
Itay Sagui1-Jan-08 4:36
Itay Sagui1-Jan-08 4:36 
GeneralRe: Working with LicenseProviderAttribute Pin
Mark Churchill2-Jan-08 3:00
Mark Churchill2-Jan-08 3:00 
GeneralGetting all text in word document Pin
Tarek Jabri1-Jan-08 4:20
Tarek Jabri1-Jan-08 4:20 
GeneralRe: Getting all text in word document Pin
beatles16921-Jan-08 5:47
beatles16921-Jan-08 5:47 
GeneralRe: Getting all text in word document Pin
Giorgi Dalakishvili1-Jan-08 9:15
mentorGiorgi Dalakishvili1-Jan-08 9:15 
Generalproblem in object splitting Pin
chanzeb1-Jan-08 2:43
chanzeb1-Jan-08 2:43 
GeneralRe: problem in object splitting Pin
beatles16921-Jan-08 6:01
beatles16921-Jan-08 6:01 
Hi It seems that you want to get the value of some fields/properties of an object that is contained in a container object (an ArrayList for example)
If I'm right you can do it using one of the following methods:
1.whenever you want to access a member of an item of an array list cast it to its type:
<br />
((myClass)myArray[0]).MyProperty=some value;<br />

2.(.net 2.0 only)You can use generic container classes to define a type for you container object.This way all the member of the container class will be changed according to its type.For example when you write MyGenericList[0] it returns an object of the type you have defined for it
<br />
List<myclass> myList=new List<myclass>(); //MyClass is deifned as the type of generic list.<br />
myList[0].MyProperty=some value;//no casting is needed<br />

in order to use a generic collection you should use System.Collection.Generics namespace
QuestionExchanging varibles between forms? Pin
DSdragondude1-Jan-08 1:58
DSdragondude1-Jan-08 1:58 
AnswerRe: Exchanging varibles between forms? Pin
beatles16921-Jan-08 6:11
beatles16921-Jan-08 6:11 
AnswerRe: Exchanging varibles between forms? Pin
Giorgi Dalakishvili1-Jan-08 9:08
mentorGiorgi Dalakishvili1-Jan-08 9:08 
GeneralPrinting Problem Pin
alimohammed1-Jan-08 0:59
alimohammed1-Jan-08 0:59 
GeneralWriting BLOB from Database to WordFile using C# Pin
Dev Motiramani31-Dec-07 23:22
Dev Motiramani31-Dec-07 23:22 
GeneralRe: Writing BLOB from Database to WordFile using C# Pin
beatles16921-Jan-08 5:39
beatles16921-Jan-08 5:39 
GeneralDatabase connections Pin
Martin Marvinski31-Dec-07 17:13
Martin Marvinski31-Dec-07 17:13 
GeneralRe: Database connections Pin
PIEBALDconsult31-Dec-07 18:36
mvePIEBALDconsult31-Dec-07 18:36 
GeneralRe: Database connections Pin
beatles16921-Jan-08 5:21
beatles16921-Jan-08 5:21 
GeneralRe: Database connections Pin
beatles16921-Jan-08 5:32
beatles16921-Jan-08 5: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.