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 -

how to prompt save As Box in Excel Interlop c# MVC 4 -

xslt 1.0 - How to access or retrieve mets content of an item from another item? -