Most viewed questions in C#

0 votes
1 answer

Are these interview questions too challenging for beginners?

As a new employee, I would expect ...READ MORE

Jun 11, 2022 in C# by pranav
• 2,590 points
391 views
0 votes
1 answer

Encapsulation of subclasses from a constructor in C#

If you think about it in terms ...READ MORE

Jun 11, 2022 in C# by pranav
• 2,590 points
388 views
0 votes
1 answer

Comparison of C++ STL collections and C# collections

This is what I know Array - C ...READ MORE

Jun 9, 2022 in C# by rajiv
• 1,620 points
385 views
0 votes
1 answer

When to use abstract classes

When you need a class for inheritance ...READ MORE

Jun 17, 2022 in C# by jyoti
• 1,240 points
381 views
0 votes
1 answer

Multiple Inheritance in C#

The.net Framework CLR and C# hasn't been ...READ MORE

Jun 7, 2022 in C# by rajiv
• 1,620 points
381 views
0 votes
1 answer

How do I turn a C# object into a JSON string in .NET

Newtonsoft.json can be used to accomplish this. ...READ MORE

Jun 13, 2022 in C# by krishna
• 2,820 points
380 views
0 votes
0 answers

Compress existing PDF using C# programming using freeware libraries

I've been looking for ways to compress ...READ MORE

Jun 11, 2022 in C# by jyoti
• 1,240 points
367 views
0 votes
1 answer

Convert VB.NET --> C# Projects

You may decompile whole Assemblies into Visual ...READ MORE

May 30, 2022 in C# by rajiv
• 1,620 points
366 views
0 votes
0 answers

Best way to reverse a string

I recently had to develop a string ...READ MORE

Jun 11, 2022 in C# by krishna
• 2,820 points
363 views
0 votes
1 answer

How to find the extension of a file in C#

Go to here https://docs.microsoft.com/en-us/dotnet/api/system.io.path.getextension?redirectedfrom=MSDN&view=net-6.0#System_IO_Path_GetExtension_System_String_ string myFilePath = @"C:\MyFile.txt"; string ext ...READ MORE

Jun 21, 2022 in C# by jyoti
• 1,240 points
360 views
0 votes
0 answers

What is a jagged array?

In C#, what is a jagged array? ...READ MORE

Jun 11, 2022 in C# by pranav
• 2,590 points
352 views
0 votes
0 answers

How to create dependency injection for ASP.NET MVC 5

It's simple to create Dependency Injection using ...READ MORE

Jun 11, 2022 in C# by pranav
• 2,590 points
348 views
0 votes
1 answer

How to convert JSON text into objects using C#

To make a class out of a ...READ MORE

Jun 13, 2022 in C# by krishna
• 2,820 points
345 views
0 votes
1 answer

What are the differences between C, C# and C++ in terms of real-world applications?

C is a bare-bones, straightforward, and clean ...READ MORE

May 30, 2022 in C# by rajiv
• 1,620 points
344 views
0 votes
1 answer

How and when to use ‘async’ and ‘await’

The compiler creates a state machine in ...READ MORE

Jul 4, 2022 in C# by krishna
• 2,820 points
332 views
0 votes
0 answers

Creating a generic method in C#

I'm attempting to integrate several comparable techniques ...READ MORE

Jun 11, 2022 in C# by pranav
• 2,590 points
331 views
0 votes
1 answer

What are some lightweight editors for C#

Use this link http://linqpad.net/ For me, this is better ...READ MORE

Jun 13, 2022 in C# by krishna
• 2,820 points
331 views
0 votes
1 answer

Correct syntax for main method

Both ways are correct. But taking the ...READ MORE

Jun 7, 2022 in C# by pranav
• 2,590 points
327 views
0 votes
0 answers

Abstract Class:-Real Time Example

In a recent interview, I was asked ...READ MORE

Jun 11, 2022 in C# by pranav
• 2,590 points
323 views
0 votes
1 answer

.NET fiddle error when invoking Castle Windsor

It does, in fact, have something to ...READ MORE

Jun 9, 2022 in C# by rajiv
• 1,620 points
321 views
0 votes
1 answer

Why program working differently on every run when using async?

You can use the async Main method ...READ MORE

May 30, 2022 in C# by rajiv
• 1,620 points
318 views
0 votes
1 answer

How to implement SOLID principles into an existing project

It will be a lengthy procedure. You ...READ MORE

Jun 14, 2022 in C# by krishna
• 2,820 points
315 views
0 votes
1 answer

.NET Guitar Chord Library

It is true that finding something is ...READ MORE

Jun 6, 2022 in C# by pranav
• 2,590 points
314 views
0 votes
1 answer

Is there an official logo of C#

There isn't an official logo, as far ...READ MORE

Jun 13, 2022 in C# by krishna
• 2,820 points
313 views
0 votes
1 answer

A good and complete tutorial about reflection in .NET?

First, go to this link http://www.codeproject.com/Articles/55710/Reflection-in-NET Also, you ...READ MORE

Jun 6, 2022 in C# by pranav
• 2,590 points
312 views
–1 vote
1 answer

Examples of GoF design patterns in .net

I am attaching some links. Go through ...READ MORE

Jun 23, 2022 in C# by krishna
• 2,820 points
308 views
0 votes
1 answer

Build a bot in Azure online code editor

Restart the Web App Bot and the ...READ MORE

Jun 9, 2022 in C# by rajiv
• 1,620 points
308 views
0 votes
0 answers

Why does one use dependency injection?

I'm making an effort to comprehend dependency ...READ MORE

Sep 26, 2022 in C# by krishna
• 2,820 points
305 views
0 votes
1 answer

What are major differences between C# and Java

Instead of listing out mutiple points, I ...READ MORE

Jun 9, 2022 in C# by rajiv
• 1,620 points

edited Jul 4, 2023 by Khan Sarfaraz 303 views
0 votes
1 answer

When would you use delegates in C#

Delegates come in handy for a variety ...READ MORE

Jun 11, 2022 in C# by pranav
• 2,590 points
301 views
0 votes
0 answers

Origin of the C# language name

Programmer in C and C++, currently attempting ...READ MORE

Sep 20, 2022 in C# by Edureka
• 13,620 points
298 views
0 votes
1 answer

Are there any suggestions for developing a C# coding standards / best practices document

I would ask you to start out ...READ MORE

Jun 23, 2022 in C# by krishna
• 2,820 points
297 views
0 votes
0 answers

Rich Text Editor on a web page

May somebody lead me in the correct ...READ MORE

Sep 20, 2022 in C# by Edureka
• 13,620 points
296 views
0 votes
1 answer

What extensions are there for generated C# files

This is by no means complete, but ...READ MORE

Jun 9, 2022 in C# by rajiv
• 1,620 points
296 views
0 votes
1 answer

When should you use C# indexers

First, let's talk about indexer. Class (or struct) ...READ MORE

Jun 23, 2022 in C# by krishna
• 2,820 points
295 views
0 votes
1 answer

What is LINQ and what does it do

LINQ or Language Integrated Query may refer to: a ...READ MORE

Jun 21, 2022 in C# by jyoti
• 1,240 points
295 views
0 votes
1 answer

Which version of C# am I using

From developer cmd, type this csc -langversion:? This will ...READ MORE

Jun 7, 2022 in C# by pranav
• 2,590 points
295 views
0 votes
1 answer

Origin of the C# language name

The '#' is actually a musical sharp ...READ MORE

Jun 7, 2022 in C# by pranav
• 2,590 points
294 views
0 votes
1 answer

Simple VB or C# questions for an interview

The difficulty with asking language-specific questions for ...READ MORE

Jun 13, 2022 in C# by krishna
• 2,820 points
288 views
0 votes
1 answer

Is a Library a project or a C# source code file in Visual Studio?

A library project is a collection of ...READ MORE

Jun 7, 2022 in C# by rajiv
• 1,620 points
287 views
0 votes
0 answers

Roslyn: Convert C# to VB

I have a situation where I need ...READ MORE

Dec 12, 2022 in C# by Roshan
• 300 points
286 views
0 votes
1 answer

Datatypes in C#

You might be beginner I think. Go ...READ MORE

Jun 9, 2022 in C# by rajiv
• 1,620 points
284 views
0 votes
1 answer

What is cool about generics, why use them

Okay. For simplification, I am listing it ...READ MORE

Jun 23, 2022 in C# by krishna
• 2,820 points
283 views
0 votes
0 answers

Object Oriented Programming Basic Concept(C#)

We are aware that the default modifier ...READ MORE

Dec 12, 2022 in C# by Roshan
• 300 points
279 views
0 votes
1 answer

How to quickly code and run small C# code

I personally use this LINQPad for this. ...READ MORE

Jun 23, 2022 in C# by krishna
• 2,820 points
279 views
0 votes
1 answer

C++ interview preparation

I am assuming that this phone interview ...READ MORE

Jun 21, 2022 in C# by jyoti
• 1,240 points
278 views
0 votes
1 answer

Need a fast C# tutorial for (short-term) non-.Net programmers

First use this link http://www.thinkingparallel.com/2007/03/06/c-vs-c-a-checklist-from-a-c-programmers-point-of-view/ Second, ask them ...READ MORE

Jun 9, 2022 in C# by rajiv
• 1,620 points
277 views
0 votes
1 answer

How to iterate over a dictionary?

I have seen this being used. In ...READ MORE

Jun 7, 2022 in C# by pranav
• 2,590 points
274 views
0 votes
0 answers

C# Potential Interview Question…Too hard?

Determine which Foo method will be invoked ...READ MORE

Sep 27, 2022 in C# by krishna
• 2,820 points
273 views
0 votes
0 answers

What are the differences between C#.net and Visual Basic.net

I have some VB.net expertise and would ...READ MORE

Jun 11, 2022 in C# by krishna
• 2,820 points
273 views