C#

In this category, you will find all C# related posts.

Convert string to int in C#

In this post, we are going to learn how to convert string to int in C#. We will use convert class, Parse(), TryParse() method and convert string number to int to o an equivalent 16,32,64 bit signed integer with program example. 3 methods to Convert string to int in C# Using System.convert class method Using …

Convert string to int in C# Read More »

Convert String to Enum in C#

In this post, we are going to learn how to Convert String to Enum in C#. 1. C# Enum.parse() method The enum.parse() method in the system namespace is used to convert the string representation of the name or numeric value of one or more enumerated constants to an equivalent enumerated object. Syntax The enum.parse() overloads …

Convert String to Enum in C# Read More »

60 SQL Server Interview Question on Query for experienced

In this post, we will explore 60 SQL Server Interview Question on Query for experienced Part 2 : sql-server-interview-questions-on-query-for-experienced Consider These two tables for All Queries Employess_Details Table Department Table 1. What are alternative of Top clause in SQL Server Answer There are two alternative of Top Clause in SQL server Row_number() Rowcount 2.What is …

60 SQL Server Interview Question on Query for experienced Read More »

Structure Read-only members, Default interface methods, Static local functions in latest C# 8.0

Read-only members in structures With C# 8.0, now you can apply a read-only modifier to the members of a structure. This new feature is to provide read-only attributes to individual members of a structure. Earlier this was only possible at the whole structure level. Let us Understand this with an example: The readonly modifier is …

Structure Read-only members, Default interface methods, Static local functions in latest C# 8.0 Read More »

What is new in .net C# 8.0?

C# 8.0 is here with some great new feature additions to the language. In this article, we will be going through the new features in.net C# 8.0. Before we start to dive into detail into each feature, let me give you the list of features: Table of Contents Nullable reference types Using Declarations Readonly members …

What is new in .net C# 8.0? Read More »