Click here to Skip to main content
15,892,161 members
Home / Discussions / C#
   

C#

 
GeneralRe: Check if user can write and delete from a directory Pin
RCoate25-Jul-10 20:25
RCoate25-Jul-10 20:25 
GeneralRe: Check if user can write and delete from a directory Pin
Not Active26-Jul-10 1:22
mentorNot Active26-Jul-10 1:22 
AnswerRe: Check if user can write and delete from a directory Pin
PIEBALDconsult25-Jul-10 18:58
mvePIEBALDconsult25-Jul-10 18:58 
GeneralRe: Check if user can write and delete from a directory Pin
RCoate25-Jul-10 20:06
RCoate25-Jul-10 20:06 
GeneralRe: Check if user can write and delete from a directory Pin
PIEBALDconsult26-Jul-10 3:02
mvePIEBALDconsult26-Jul-10 3:02 
QuestionCapture streaming video - (create bitmap) Pin
Mark H Bishop25-Jul-10 11:41
Mark H Bishop25-Jul-10 11:41 
AnswerRe: Capture streaming video - (create bitmap) Pin
Mark H Bishop26-Jul-10 12:31
Mark H Bishop26-Jul-10 12:31 
Questionconvert an array of string Pin
mrkeivan25-Jul-10 10:59
mrkeivan25-Jul-10 10:59 
Hey guys, I ve got this question, I tried to look for it online but haven't been lucky!
I've got this:
string[] names = new string[] { "Alan Smith", "Anne Dodsworth", "Boyan Mastoni", "Richard Duncan"};

Now I want to fill it from database, so I used a generic list
public List<string> ClassroomList = new List<string>();

then fill it with data from database,
but when I want to assign it to my string I get an error and can't convert it ....

string[] names = new string[10];
foreach (var item in ClassroomList)
{
    for (int i = 0; i < names.Length; i++)
    {
        names[i] = item;
    }
}


please help me out.

thanx
AnswerRe: convert an array of string Pin
harold aptroot25-Jul-10 11:05
harold aptroot25-Jul-10 11:05 
AnswerRe: convert an array of string Pin
Luc Pattyn25-Jul-10 11:20
sitebuilderLuc Pattyn25-Jul-10 11:20 
AnswerRe: convert an array of string Pin
PIEBALDconsult25-Jul-10 12:10
mvePIEBALDconsult25-Jul-10 12:10 
GeneralRe: convert an array of string Pin
Luc Pattyn25-Jul-10 12:55
sitebuilderLuc Pattyn25-Jul-10 12:55 
GeneralRe: convert an array of string Pin
PIEBALDconsult25-Jul-10 13:02
mvePIEBALDconsult25-Jul-10 13:02 
QuestionSecure storage Pin
L Viljoen25-Jul-10 9:02
professionalL Viljoen25-Jul-10 9:02 
AnswerRe: Secure storage Pin
Eddy Vluggen25-Jul-10 9:28
professionalEddy Vluggen25-Jul-10 9:28 
GeneralRe: Secure storage Pin
harold aptroot25-Jul-10 9:45
harold aptroot25-Jul-10 9:45 
GeneralRe: Secure storage Pin
Eddy Vluggen25-Jul-10 10:05
professionalEddy Vluggen25-Jul-10 10:05 
GeneralRe: Secure storage Pin
harold aptroot25-Jul-10 10:08
harold aptroot25-Jul-10 10:08 
GeneralRe: Secure storage Pin
Eddy Vluggen25-Jul-10 10:41
professionalEddy Vluggen25-Jul-10 10:41 
GeneralRe: Secure storage Pin
harold aptroot25-Jul-10 10:43
harold aptroot25-Jul-10 10:43 
GeneralRe: Secure storage Pin
Eddy Vluggen25-Jul-10 11:00
professionalEddy Vluggen25-Jul-10 11:00 
GeneralRe: Secure storage Pin
L Viljoen25-Jul-10 20:52
professionalL Viljoen25-Jul-10 20:52 
GeneralRe: Secure storage Pin
L Viljoen25-Jul-10 20:51
professionalL Viljoen25-Jul-10 20:51 
GeneralRe: Secure storage Pin
Eddy Vluggen25-Jul-10 23:24
professionalEddy Vluggen25-Jul-10 23:24 
AnswerRe: Secure storage Pin
Stoffy197225-Jul-10 9:33
Stoffy197225-Jul-10 9:33 

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.