c# 对FileInfo[] 使用OrderBy或OrderByName进行排序
发布时间
阅读量:
阅读量
GetFiles()方法所返回的FileInfo[]数组无法确保其排列顺序的准确性。
在近期的编码实践中,我遇到了以下情形:

如图所展示的文档。
using System;
using System.IO;
using ExcelDataReader;
using System.Linq;
using System.Data;
using System.Collections.Generic;
namespace 读取excel
{
class Program
{
static void Main(string[] args)
{
string strDesktopPath = Environment.GetFolderPath(Environment.SpecialFolder.DesktopDirectory);
string datapath = strDeskto
全部评论 (0)
还没有任何评论哟~
