Most viewed questions in C#

0 votes
1 answer

Encapsulation vs abstraction real world example

Encapsulation is a technique for "information concealment," ...READ MORE

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

Converting dd/mm/yyyy formatted string to Datetime

Sounds to me like you need DateTime.ParseExact ...READ MORE

Jul 4, 2022 in C# by krishna
• 2,820 points
12,595 views
0 votes
1 answer

Windows Form application on Visual Studio Code?

There is a simpler way to achieve ...READ MORE

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

Reading a key from the Web.Config using ConfigurationManager

Instead of any other thing, use the ...READ MORE

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

Adding New Form to Project - Windows Form Application C# (using Macbook)

To add a new form to your ...READ MORE

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

How many files are created when a C program is executed

It depends. Depending on the compiler type ...READ MORE

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

How do I specify the exit code of a console application in .NET

Simply put, you can return the exit ...READ MORE

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

C# DateTime to "YYYYMMDDHHMMSS" format

Use this. It is case sensitive by ...READ MORE

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

Convert async Task from c# to vb.net

I'm using a C# to VB.NET converter ...READ MORE

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

What is the best C# to VB.net converter

Telerik has a solid SharpDevelop-based converter that ...READ MORE

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

Which design pattern to use for pre-process process and post-process task

You have pre-defined and precise steps to ...READ MORE

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

How to initialize a list of strings (List<string>) with many string values

Simply remove the () at the end. List<string> ...READ MORE

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

array of string with unknown size

Is there a specific reason why an ...READ MORE

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

How to get substring from string containing newlines

If you want to maintain the newline ...READ MORE

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

Convert XML String to Object

I'm getting XML strings over a socket ...READ MORE

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

Logging DML operations in ASP.NET MVC project

There are several options. You might register an ...READ MORE

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

How can I compile and run c# program without using visual studio

If you have.NET Framework v4 installed, then C:\Windows\Microsoft.NET\Framework\v4.0.30319\csc.exe ...READ MORE

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

Monaco Editor (react) with extended C# intellisense

To load certain code-files, I'm using the ...READ MORE

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

Use of interfaces, practical and real world example

I've been attempting to figure out what ...READ MORE

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

How to add a gridview to a C# winforms project with a list of objects as the datasource

In Visual Studio 2015 community, I'm creating ...READ MORE

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

How to force overriding a method in a descendant, without having an abstract base class

This is my code using System; using System.Collections.Generic; using System.Linq; using ...READ MORE

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

ASP.NET Web API Connecting to MySQL Database

I'm new to C# and.Net programmes, but ...READ MORE

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

OOP real world example

This is what I believe. OOP does not ...READ MORE

Jul 4, 2022 in C# by krishna
• 2,820 points
755 views
0 votes
1 answer

How abstraction and encapsulation differ

They are, in my opinion, slightly different ...READ MORE

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

C# class without main method

Not every single class need the main ...READ MORE

Jul 7, 2022 in C# by krishna
• 2,820 points
626 views
0 votes
1 answer

Examples of dynamic polymorphism in c#

Check the example of polymorphism below. We ...READ MORE

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

Print Pdf in C#

Using an installed Adobe Reader or any ...READ MORE

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

Awesome ASP.NET and C# tutorials for beginners

Go here https://dotnet.microsoft.com/en-us/learn/aspnet They have some nice tutorials ...READ MORE

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

How to send email in ASP.NET C#

You can try this using Hotmail like ...READ MORE

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

Pass Method as Parameter using C#

In .NET 3.5, you can utilize the ...READ MORE

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

What is typing discipline

Wikipedia's typing discipline relates to the type ...READ MORE

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

Solid Principle examples

I am not a specialist like others, ...READ MORE

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

What is the difference between C# and .NET?

C# is a programming language, and.NET refers ...READ MORE

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

Convert VB.NET --> C# Projects

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

May 31, 2022 in C# by anonymous
482 views
0 votes
0 answers

How Convert VB Project to C#

I have a VB project that has ...READ MORE

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

Mono C# tutorial?

For learning the language, any C# tutorial ...READ MORE

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

Questions every good .NET developer should be able to answer?

If I were interviewing someone who knew ...READ MORE

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

What is the difference between a field and a property

The internal workings of a class should ...READ MORE

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

Why should I avoid using Properties in C#?

Jeff dislikes properties because they resemble fields, ...READ MORE

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

Convert VB.NET --> C# Projects

Can someone suggest a suitable program that ...READ MORE

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

What does the extension method do in c# and why do you need it

Extension Methods allow you to add additional ...READ MORE

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

Object Oriented Programming Basic Concept(C#)

Use this link https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/classes-and-structs/access-modifiers protected internal: The type or ...READ MORE

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

Selenium C# tests in Browserstack

Try this and make changes according to ...READ MORE

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

Fiddler doesn't capture traffic from my C# app

I've tried Fiddler with Fiddler2 and Fiddler4, ...READ MORE

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

Music major scale converter

I believe I know what you're looking ...READ MORE

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

Certifications for C# Developers

Try this link: https://docs.microsoft.com/en-us/learn/certifications/browse/?resource_type=certification Here you can see ...READ MORE

Jul 4, 2022 in C# by krishna
• 2,820 points
393 views
0 votes
1 answer

I don't understand inheritance with base classes

If you just want to keep a ...READ MORE

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

Associativity of operators

The following is taken from the C# ...READ MORE

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

Questions every good .NET developer should be able to answer

I have these two great links for ...READ MORE

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

Rich Text Editor on a web page

Perhaps something along the lines of TinyMCE ...READ MORE

May 30, 2022 in C# by rajiv
• 1,620 points
382 views