Search

Deep Copy of Object in C#
By Tan Lee Published on Dec 02, 2024 369

In C#, a deep copy of an object means creating a new instance of the object, along with all objects referenced by it, so that changes to the copy do not affect the original object, and vice versa.

Read more
How to Catch Multiple Exceptions in C#
By Tan Lee Published on Dec 02, 2024 316

In C#, you can catch multiple exceptions in a single catch block by using a few different approaches.

Read more
How to cast int to enum in C#
By Tan Lee Published on Dec 02, 2024 203

In C#, you can cast an integer to an enum by using the Enum.ToObject method or by performing a direct cast if you know the integer corresponds to a valid value of the enum.

Read more
What is the difference between String and string in C#?
By Tan Lee Published on Dec 02, 2024 210

In C#, `string` is an alias for `System.String`, meaning there is no technical difference between the two, similar to how `int` is an alias for `System.Int32`.

Read more
How to Create a Modern Windows 8 UI with the Metro Framework in C#
By Tan Lee Published on Jul 15, 2017 8.85K

o create a modern Windows 8 UI with the Metro Framework in C#, follow these steps.

Read more
How to create a Web Browser with Tabs in C#
By Tan Lee Published on Jul 04, 2017 12.45K

Creating a simple web browser with tabs in C# can be done using the WebBrowser control.

Read more
How to fill ComboBox and DataGridView automatically in C#
By Tan Lee Published on Jul 26, 2017 7.35K

To automatically populate a ComboBox and a DataGridView in C#, you typically need to bind these controls to data sources.

Read more
How to Read text file and Sort list in C#
By Tan Lee Published on Jul 04, 2017 7.87K

To read a text file and sort a list in C#, you can follow these steps.

Read more
How to pass ListView row data into another Form in C#
By Tan Lee Published on Jul 26, 2017 8.75K

To pass data from a ListView row to another form in C#, you can follow these steps.

Read more
How to use LINQ to SQL with Stored Procedures in C#
By Tan Lee Published on Jul 24, 2017 8.36K

An overview of using stored procedures with LINQ to SQL in C# Windows Forms

Read more