C# | MVC | DotnetCore | Web API | Blazor | HTML | BootStrap | JavaScript | JQuery | EF | Angular | SQL | Azure
DataTable dtResult; //Populate Datatable int[] firstRow = dtResult.AsEnumerable() .Take(1) .ToArray();
DataRow[] dr = dt.AsEnumerable().Take(1).ToArray(); object[] dr1 = dr[0].ItemArray; int[] dr2 = Array.ConvertAll(dr1, (p => Convert.ToInt32(p)));
No comments:
Post a Comment