3343 0
Various star pattern program in c#
In this article, I have show example of various star pattern programs in C# with code and there output.
Type
Article
3337 0
Understanding Enums in C# & it's advantages with example
This article will give you introduction of Enums in C# and will help you understand where we should use it in real world and gives it advantages.
Type
Article
3253 0
How to get file extension or file size in C# ? ( Code With Example )
In this tutorial article, I have provided sample code with examples, which shows how to get file extension from file name and file size in C#
Type
Article
3241 1
How can I get application root folder location in C# Console application?

I am creating a C# console application for some test project, in which I need to get Root folder location (application path) of project, for example, if my project is in "C:\Project\Program.cs", so i should get "C:\Project\" drive as root location. 

How can I get it using C# console application, in web-application we get it using Server.MapPath("~/") but I am not sure about console application.

...
Type
Question
3207 1
Redirect users to a view using Switch case in asp.net MVC?

I want to redirect the users to certain pages on the basis of their rating. How can I use a switch case in C# ASP.NET MVC to do this? Please give me suggestions with some code part.

...
Type
Question


3099 1
How to make Group by in Linq work with possible null values, in C#?

I am trying to add List.GroupBy(a=>a.ProductType.Name).Select(a=>a.FirstOrDefault()), now here I can have null values for .ProductType or .name so how can I ignore null values in C#, so I can get proper results of GroupBy?

If I am using above query in C#, I am getting error

Object reference not set to an instance of an object

I tried to make it like List.GroupBy(a=>a.ProductType != null ? a.ProductType), but it doesn't work.

...
Type
Question
3061 0
Read OR Write OR Modify Web.Config file using C#
In this article, I have explained and provided code to read, write or modify values from web.config file programmatically using C# code.
Type
Article
3050 0
Bundling and Minification in MVC C#
In this article, I will explain how you can implement bundling and minification in your ASP.NET MVC application(step by step) which improves your web-application performance.
Type
Article
2990 0
MySQL Connection in C# (Console Application Example)
In this article, I have provided working sample to connect to MySQL in C# using Visual Studio with Console application example.Also , how to insert new row in MySQL database in C# and Visual Studio.
Type
Article
2984 1
Object Oriented Programming (OOPS) concepts in c# with example
OOP stands for Object Oriented Programming, in this article I have introduced you the concept of Object-Oriented Programming in C# with example
Type
Article

Page 8 of 16