Skip to content

C# Examples

  • Home
  • About C#
    • C# Interview Questions and Answers for .NET Developers
    • Learn C#: A Practical Path Through the Examples
  • All Posts
  • Bootstrap 5 Examples
  • Contact

C# .NET

Select a File with OpenFileDialog in C# (WinForms)

November 25, 2026July 12, 2014 by turgay

Let the user pick one or more files with the WinForms OpenFileDialog, filter by type, and read the selected file without freezing the UI.

Categories C# .NET, WinForms Tags C#, open a file, open file dialog usage, select a file Leave a comment

Write Data to an Excel File in C#

November 25, 2026July 11, 2014 by turgay

Create .xlsx files from C# with ClosedXML, no Excel installation needed, plus formatting, formulas and why Office interop fails on servers.

Categories C# .NET, Files and I/O Tags C#, write data to an excel file, write excel 4 Comments

Read Data from an Excel File in C#

November 25, 2026July 11, 2014 by turgay

Read .xlsx files in C# with ClosedXML, no Excel installation needed: loop over rows, convert cells safely, and read files open in Excel.

Categories C# .NET, Files and I/O Tags C#, excel interop, read data from excel, read from excel 2 Comments

Sorting Algorithms in C#: Comparison and Implementations

November 25, 2026July 3, 2014 by turgay

The common sorting algorithms side by side, with time and space complexity, stability, when each one makes sense, and links to C# implementations.

Categories C# .NET, Sorting Algorithms Tags all sorting algorithm implementations, C#, implementation, sort algorithms Leave a comment

Merge Sort in C#: A Generic, Stable Implementation

November 25, 2026July 3, 2014 by turgay

A merge sort implementation in modern C# that sorts any comparable type, keeps equal elements in order and allocates its buffer only once.

Categories C# .NET, Sorting Algorithms Tags C#, implementation, merge sort algorithm, merge sort algorithm implementation, sorting algorithm 1 Comment
Older posts
Newer posts
← Previous Page1 … Page7 Page8 Page9 … Page17 Next →

Categories

Recent Posts

  • Select XML Nodes by Name or Attribute Value in C#
  • Binary Search Tree in C#: Add, Find, Remove and Traversals
  • Select, Insert, Update and Delete Data in an Access File with C#
  • C# Collections: Which One to Use and When
  • C# ArrayList vs Generic List: Examples and When to Use Each
  • About
  • Privacy Policy
  • Contact
© 2026 C# Examples