Some convenient use C #

This string is divided by a string divided into an array of strings and
string[] arr = System.Text.RegularExpressions.Regex.Split(str, "\r\n");

dynamic dynamic type List <dynamic> can customize the content and the bound column 

List<dynamic> dy = new List<dynamic>();
dy.Add(new
                        {
                            CustomerId = c.CustomerId,
                            FullName = c.FullName,
                            TraceUserName = c.TraceUserName,
                            CustDegreeId = c.CustDegreeId,
                            CustTypeId = c.CustTypeId
                        });

 

Guess you like

Origin www.cnblogs.com/baimangguo/p/11484263.html