c# - How to call String.Split that takes string as separator? -


i have following string value: annualfee[[contactneeyear want split using separator : "[["

the msdn topic string.split says such function exists, used following code :

omatch.groups[0].value.split('[[');

but throws error saying:

can not implicitly convert string[] string

so how split string value separator : "[["

try below code, has worked me:

        string abc = "annualfee[[contactneeyear";          string[] separator = { "[[" };          string[] splitedvalues = abc.split(separator , stringsplitoptions.none); 

i hope you.. :):)


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -