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#

Select, Insert, Update and Delete Data in an Access File with C#

November 25, 2026March 29, 2019 by turgay

CRUD against an Access .accdb or .mdb file from C# with OleDb: parameterised queries, getting the new AutoNumber ID, and the 32/64-bit trap.

Categories C# .NET, Databases Tags Access, Access File, C#, CRUD, database, delete, insert, mdb, select, update 2 Comments

C# ArrayList vs Generic List: Examples and When to Use Each

November 25, 2026March 27, 2019 by turgay

How to add, find and remove items with the generic List, why it replaced ArrayList, and what to watch for when you maintain code that still uses ArrayList.

Categories C# .NET, Collections Tags array, arraylist, C#, collections, list 1 Comment

Select, Insert, Update and Delete Data in MySQL with C#

November 25, 2026June 1, 2015 by turgay

Async CRUD against MySQL from C# with MySqlConnector: parameterised queries, reading rows, getting the new ID and using a transaction.

Categories C# .NET, Databases, MySQL Tags C#, c# mysql insert, c# mysql select, database, delete, insert, mysql, select, update 2 Comments

Get the Width and Height of Any Window in C# with GetWindowRect

November 25, 2026October 10, 2014 by turgay

Read the position and size of any window, including other applications’ windows, with the GetWindowRect API in C#, plus the DPI and border traps.

Categories C# .NET, WinForms Tags C#, get window rectangle, windows api Leave a comment

Async and Await in C#: Practical Examples and Common Mistakes

November 25, 2026September 11, 2014 by turgay

How async and await work in C#, how to run several operations at once with Task.WhenAll, how to cancel them, and the mistakes that cause deadlocks and lost exceptions.

Categories C# .NET Tags async, asynchronous programming, await, C# 2 Comments
Older posts
Page1 Page2 … Page16 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