dcsimg
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: BioPhysEngr

Search: Search took 0.02 seconds.

  1. Replies
    5
    Views
    1,325

    Re: FileInfo filter by size

    An easy mistake to make! As I learned when programming in assembly (for which there was no debugger I liked): code review - just re-reading through your own code - is the single most powerful...
  2. Replies
    5
    Views
    1,325

    Re: FileInfo filter by size

    for (int i = 0; i < sizeFiltered.Count; i++)
    {
    Console.Write("{0}. ", i + 1);
    Console.Write(sizeFiltered[i].Name);
    Console.Write(" ({0})",...
  3. Replies
    5
    Views
    1,325

    Re: FileInfo filter by size

    I am not a fan of Linq. Instead just loop:



    List<FileInfo> sizeFiltered = new List<FileInfo>();
    foreach(FileInfo f in files)
    {
    if( f.Length >= lowerBound && f.Length >= upperBound )
    ...
Results 1 to 3 of 3


Windows Mobile Development Center


Click Here to Expand Forum to Full Width




On-Demand Webinars (sponsored)


×
We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.