Link to home
Start Free TrialLog in
Avatar of mathieu_cupryk
mathieu_cuprykFlag for Canada

asked on

error CS0029: Cannot implicitly convert type 'System.Collections.Specialized.StringCollection' to 'string[]'

C:\SvnWork\InitialPriceReporting\DotNet\InitialPriceReporting\clsAuthenticateActiveDirectory.cs(29,35): error CS0029: Cannot implicitly convert type 'System.Collections.Specialized.StringCollection' to 'string[]'

 string[] sGroup = Properties.Settings.Default.Groups; ==> this I am not sure what to do?
 return (WS.IsUserInAllowedGroup(sGroup));

ASKER CERTIFIED SOLUTION
Avatar of rbmacct
rbmacct

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You should convert it using following type of code:


String[] sGroup = new String[Properties.Settings.Default.Groups.Count];
Properties.Settings.Default.Groups.CopyTo( sGroup , 0 );
tss.... too late...
Avatar of mathieu_cupryk

ASKER

Amazing job!!!