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
Post a Comment