Subscribe to Subscribers
Talk to Webmaster Tony John

Forums » .NET » ASP.NET »

Convert Array List to FileInfo type


Posted Date: 19 May 2012      Posted By:: Christopher F     Member Level: Gold    Member Rank: 173     Points: 1   Responses: 1



Hi

How to convert Arraylist to Fileinfo type?

Thanks
Christopher F




Responses

#671454    Author: Ajatshatru Upadhyay      Member Level: Gold      Member Rank: 19     Date: 19/May/2012   Rating: 2 out of 52 out of 5     Points: 2

Hi,

Try the below code snippet. This would convert ArrayList to array of FileInfo[]:


ArrayList myList = new ArrayList();
FileInfo[] myInfo = (FileInfo[])(myList.ToArray(typeof(FileInfo)));


Hope it'll help you.
Regards
Ajatshatru



 
Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.



Next : Can any one help me pls
Previous : Uncheck radio button
Return to Discussion Forum
Post New Message
Category:

Related Messages
Active Members
TodayLast 7 Daysmore...

Awards & Gifts
Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India
2005 - 2012 All Rights Reserved.
.NET and other trademarks mentioned in this site belong to Microsoft and other respective trademark owners.
Articles, tutorials and all other content offered here is for educational purpose only.
We are not associated with Microsoft or its partners.