There's no need to use
.StartWith
or
.Contains
method. Simple
.Replace
should be enough :)
var result = config.Select(x=>x.Replace("userdata.", string.Empty)).ToList();
Of course, if you want to return only data with
member
word, you can use:
var result = config.Where(x=>x.Contains("member")).Select(x=>x.Replace("userdata.", string.Empty)).ToList();