Tag Archives: CSharp

C#: Delete folder, including its sub-folders and files, even if marked as ‘read-only’

The Directory class, which is in the namespace System.IO, has a method called Delete with two overloads, in which one of them gets the name of the folder to be deleted and a boolean value to indicate if the method … Continue reading

Posted in .NET | Tagged , , , , | 6 Comments

CSharp: Assign ‘null’ to variables of type int, decimal, DateTime, and other value types

In .NET we have two kinds of types: Value types and Reference types.

Posted in .NET | Tagged , | Leave a comment