How to check when a file was last accessed and updated in C# and .NET.
How to check when a file was created in C#. The CreationTime property returns the DateTime when a file was created.
How to check if a file is read only in C#. The IsReadOnly property of the FileInfo class returns if a file is read only.
How to check if a file exists in C# and .NET. The Exists property of the FileInfo class returns true if a file exists.
Code sample on C# get file extension. FileInfo.Extension property returns the file extension in C#.
Furthermore, DirectoryName returns the full path of the directory containing the file, assisting in navigation and hierarchical file organization. Lastly, CreationTime offers insights into the file's creation timestamp, enabling tracking and chronological management of file activities.
Code sample to show how to create a file in C# and get a file attributes such as file creation time, file size, file last updated, file last accessed, and file last write time.
Learn how to read a binary file in C# and .NET. The Read overloaded method writes primitive data types to a stream. The Write method can write Boolean, Byte, Char, Decimal, Double, and Integer data types.
How to write a binary file using C# and .NET. The Write overloaded method is used to write primitive data types to a stream. The Write method can write a Boolean, Byte, Char, Decimal, Double, and Integer data types.
Learn how to create and write binary files in C# with System.IO.BinaryWriter, including writing primitive values to a stream and selecting character encoding.
C# List Find. Check if an item is in the C# list or not. The Contains method checks if the specified item already exists in the C# List.

List.BinarySearch() method searches a List of collection using binary search algorithm. The code example shows how to search a list items using C#.
How to remove an Item from a C# List. The Remove method removes the first occurrence of a specific object from a List. The Remove method takes an item as its parameter. We can use the RemoveAt method to remove an item at the specified position within a List.
C# List<T> class represents a collection of a type in C#. List.Add(), List.AddRange(), List.Insert(), and List.InsertRange() methods are used to add and insert items to a List<T>. The code examples in this article demonstrates how to add items to a List using C#.
The IndexOf method returns the first index of an item if found in the List.
The List<T> class in C# and .NET represents a strongly typed list of objects. List.Remove() and List.RemoveAt() methods with List.Clear() method can be used to remove items of a List<T> in C#. The code examples in this article demonstrates how to remove an item of a List using C#.
C# List<T> class provides methods and properties to create a list of objects (classes). List.Remove(), List.RemoveAt(), and List.Clear() methods are used to delete items of a List in C#.

The LastIndexOf method returns the last index of an item if found in the List.
Learn how to reverse the order of items in a C# List using the List.Reverse() method, with a simple code example.

Learn how to remove items from a C# List by value, index, range, or by clearing the entire list.
DevSocialUpcoming · 3rd editionAI Agents ConferenceNov 23–27, 2026Live onlineMembers only16days leftRegisterMembers onlyWrite an article and earn +1,000 SHARP when it is approved.
Write an article