c# - In C # how to pass string.empty in a list of string -


i have list of string

emails = new list<string>() { "r.dun@domain.co.nz", "s.dun@domain.co.nz" } 

now want pass string.empty first value of list

something like

policy.emails = new list<string>(){string.empty}; 

how put loop e.g. each value of list something.

you can directly set first element string.empty:

policy.emails[0]=string.empty; 

Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -