Home » Interview Q&A » Archive by categoryC# Interview Questions

NumberStyle in Parse() and TryParse() in C#

numberstyle-in-parse-and-tryparse-in-csharp
NumberStyle in Parse() and TryParse() in C# Hello folks, today we will learn about NumberStyle in Parse() and TryParse() in C# using examples one by one by taking one by one NumberStyles as shown in below image. So let’s try to understand NumberStyle in Parse() and TryParse() in...
Continue reading

Nullable types in C#

NullableTypeCsharp
Nullable types in C# C# types are divided into below two categories: Value Types: int, float, double, struct etc. Reference Type: string, class, Interface, delegates, arrays etc. By default value types are non nullable. To have nullable value type we have to use ? Nullable type is work...
Continue reading

Method Overloading in C#

method overloading in c#
Method Overloading in C# What is Method Overloading in C# ? Method overloading in c# is also known as Function overloading in C#. Method overloading allows a class to declare multiple methods with same name,but different signature.   [crayon-5b740724425e3875215768/]  
Continue reading

Register custom URL Protocol using C# – Windows Application

URL-Protocol-output
Register custom URL Protocol using C# – Windows Application Hello folks, today we will understand what is Custom URL protocol and how can we register custom URL protocol using C#. Below is code snippet to register custom URL protocol using C#. [crayon-5b74072442775957685662/]   As shown in code, let...
Continue reading

4 ways to Convert JSON to DataTable in C# – asp.net

Convert JSON to DataTable in C# - asp.net
4 ways to Convert JSON to DataTable in C# – asp.net Problem: Sometime we do require to convert JSON to DataTable in C# Windows Application or Web application or website to display data using DataTable in GridView or DataGrid or other Server Control. I strongly recommend to read...
Continue reading

Difference between Abstraction and Encapsulation in C#

Difference-between-Abstraction-and-Encapsulation-in-C#
Difference between Abstraction and Encapsulation in C# Hey folks, till day you have read Use of Private Constructor in C# with an example, Difference between Throw and Throw ex in C#, Difference between Var and Dynamic in c#,Difference Between WCF and WebAPI , Difference between String and string in C#, Difference between Nullable<>...
Continue reading

Use of Private Constructor in C# with an example

Use of Private Constructor in C#
Use of Private Constructor in C# Hey folks, till day you have read Difference between Throw and Throw ex in C#, Difference between Var and Dynamic in c#,Difference Between WCF and WebAPI , Difference between String and string in C#, Difference between Nullable<> and ?,Difference between Hashtable and Dictionary,Insert data into Database...
Continue reading

Difference between Throw and Throw ex in C#

Difference between Throw and Throw ex in C#
Difference between Throw and Throw ex in C# Hey folks, till day you have read Difference between Var and Dynamic in c#,Difference Between WCF and WebAPI , Difference between String and string in C#, Difference between Nullable<> and ?,Difference between Hashtable and Dictionary,Insert data into Database table using SQLBulkCopy class...
Continue reading

Use of Yield in C#

Use-of-Yield-Keyword-in-C-sharp
Use of Yield in C# Quote from MSDN “The yield keyword signals to the compiler that the method in which it appears is an iterator block. The compiler generates a class to implement the behavior that is expressed in the iterator block. In the iterator block, the yield...
Continue reading

Enumerate Enum C# with Examples

Enumerate-Enum-C#
How to enumerate Enum C# Problem: We have enum declared in our class and we want to enumerate enum. How could we enumerate enum let’s together try to understand. Sometimes we get error message like “Enum is a type but used as a variable”. So how can we overcome...
Continue reading




DISCLAIMER:
The content is copyrighted to technothirsty.com and may not be reproduced on other websites without permission from the owner.You may contact us using the information below.