Topics

Csharp

About this topic: Articles tagged __TAG__

Showing 446 articles

Topics

Articles

Showing 446 articles

How-tos How to Check Palindrome String in C# There are two main methods that can be used to check whether a string is a palindrome or not in C#, the String.Substring() method and the LINQ method. How-tos How to Append to Text File in C# There are three main methods that can be used to append to a text file in C#, the File.AppendAllText() method, the StreamWriter class, and the File.AppendText() How-tos How to Close Form in C# This tutorial will explore different methods that can be used to close a form in C#. How-tos How to Get Executable Path in C# There are 3 main methods that can be used to get the executable path of our program in C#, the Assembly class, the AppDomain class, and the Path class. How-tos How to Check if Process Is Running in C# There are two main methods that can be used to check if a process is running in C#, the Process.GetProcessByName() function, and the Process.GetProcessById() function. How-tos How to Repeat String X Times in C# In this article, we will explore five different methods to repeat a string x times in C# and discuss when to use each one. How-tos How to Remove Duplicates From List in C# There are two main methods that can be used to remove duplicate elements from a list in C#, the HashSet method, and the LINQ method. How-tos How to Parse CSV File in C# There are two main methods that can be used to parse a CSV file in C#, the TextFieldParser class, and the FileHelpers library. How-tos How to Implement Multiline Label in C# There are two main methods that can be used to create a multiline label in C#, the Label.AutoSize property, and the Panel method. How-tos How to Convert String to Char in C# There are four main methods that can be used to convert string to char in C#, char.Parse(), string[index], string.ToCharArray(), and the LINQ method. How-tos How to Format Datetime in C# This tutorial demonstrates how to convert a datetime variable to a formatted string using the ToString and String.Format function How-tos How to Exit a Function in C# In this tutorial, learn the different methods of exiting a function in C# with examples. Use the break, continue, goto, return, and throw exception statements. How-tos How to Convert Boolean to Integer in C# In this tutorial, learn the different methods of converting boolean to integer data type in C# with examples. Use the Convert.ToInt32 keyword. How-tos Binary Search Tree in .Net 4.0 In this tutorial, understand the implementation of binary search tree in .net 4.0. Use the Sorted Set class. How-tos How to Create a Generic Function in C# We can use the type T to declare a generic data type in C#. It can be either used as a function return type or the data type of function parameters. How-tos HashSet vs List in C# In C#, a hash set is an unordered collection of unique objects while a list is a collection of objects that can be accessed by an index. How-tos C# new vs override The override keyword is used to show the child implementation of a virtual function to its parent object whereas the new keyword is used to hide the child implementation from its … How-tos How to Add a Row in DataGridView Using C# This article explains adding a row to DataGridView in C#. How-tos How to Read and Parse an XML File in C# This how-to article shows different methods to read and parse an XML file in C#. It introduces methods like XmlReader.Read(), XmlReader.IsStartElement() and ReadString() How-tos How to Efficiently Remove All Whitespaces From a String in C# This how-to article shows different methods to efficiently remove all whitespaces from a string in C#. It introduces methods like Regex.Replace(), String.Replace() and Where method How-tos How to Convert a Char to an Int in C# This how-to article shows different methods to convert a char to an int in C#. It introduces methods like GetNumericValue(), Difference with 0, Int32.Parse() and … How-tos How to Convert Byte Array to String in C# This how-to article shows different methods to convert a byte array to a string in C#. It introduces methods like Encoding.GetString() and MemoryStream How-tos How to Make a Textbox That Only Accepts Numbers in C# This how-to article shows different methods to make a textbox that only accepts numbers in C#. It introduces methods like Regex.IsMatch(), NumericUpDown() and KeyPressEventArgs … How-tos How to Round a Decimal Value to 2 Decimal Places C# This how-to article shows different methods to round a decimal value to 2 decimal places in C#. It introduces methods like decimal.Round() and Math.Round() methods

← All topics