Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Everything / Languages / C#5.0

C#5.0

C#5.0

Great Reads

by Nirosh
This tutorial is designed for .NET programmers who need to understand ‘Nido’ framework and its application.
by Saad_Mahmood
Magical MVVM using power of Expression Blend
by Sagar Uday Kumar
Windows Shell Extension - Adding submenus to Shell Context Menus and dynamically loading them using sharpshell library.
by Yaseer Mumtaz
XML input parameter to RESTful API using HttpClient and bypassing the SSL certificate

Latest Articles

by Nirosh
This tutorial is designed for .NET programmers who need to understand ‘Nido’ framework and its application.
by Saad_Mahmood
Magical MVVM using power of Expression Blend
by Sagar Uday Kumar
Windows Shell Extension - Adding submenus to Shell Context Menus and dynamically loading them using sharpshell library.
by Yaseer Mumtaz
XML input parameter to RESTful API using HttpClient and bypassing the SSL certificate

All Articles

Sort by Score

C#5.0 

by Yaseer Mumtaz
XML input parameter to RESTful API using HttpClient and bypassing the SSL certificate
by Jeong, WonYoung(Brad)
Making BitField with C# alternative to BitField made with union and struct of C++
by sx2008
An easy-to-use class to prevent multiple instances of your application from opening and focusing/activating the first instance window.
by Southmountain
Some take-away to improve the quality of desktop software
by shijo joseph
An easy to implement yet powerful logging library which requires absolute zero learning curve
by LLLLGGGG
A really simple implementation of a C# menu for console applications
by prince sanghi
How to create an Acordian view for ListView in XAML for Windows WPF, Store, Mobile Application
by Ankit Bansal MVP
This articles explains the insertion of data into SQL Database using Stored Procedures with Output Parameters. Some Bootstrapping is also used to create a good looking HTML.
by Callum Linington (UK)
My way of diminishing the need to write out all those angular script files
by JoaoSousa23
This tip walks you through the steps for creating a ASP.NET MVC 5 Web Application using Bootstrap as template for layout.
by Alex_1
Cool menu, MVC bootstrap menu HTML helper
by Ahmed Bakodah
This post is about how to demonstrate CheckBoxList in ASP.NET MVC 4
by JoaoSousa23
An easy way to perform fire-and-forget, delayed and recurring tasks inside ASP.NET applications
by JoaoSousa23
This article walks you through configuration Redis and made basic operations using .net C# client. Redis is one of the fastest and feature-rich key-value stores to come from the NoSQL movement. It is similar to memcached but the dataset is not volatile, and values can either be strings lists, sets,
by JoaoSousa23
This article walks you through configuration Redis and made basic operations using .net C# client.Redis is one of the fastest and feature-rich key-value stores to come from the NoSQL movement. It is similar to memcached but the dataset is not volatile, and values can either be strings lists, sets, s
by SREENATH GANGA
Auto updating the exe if the latest exe is available in the network share
by Callum Linington (UK)
How to automatically add your AutoMapper profiles
by Ms. Mayuri Gandhi
This tip is about how you can automate your test cases to execute after every build or independently and share test result.
by Alberto Nuti
How to serialize an object without having to manually instruct the DataContractSerializer class.
by MRBULL93
In this tip, I am presenting a simple way to avoid refresh resubmit
by Zhuyun Dai
Your build will fail if you print 'Error:' in your custom Build Events of Visual Studio.
by manchanx
Tidy, generic solution to bind Enums (with or without a DescriptionAttribute) to a ComboBox or other Controls
by Rapuru Amarendra
This tip presents an example of popups in responsive using bootstrap
by Rakesh Vemula
A Windows application which processes your code and shows how much time it takes to execute your code.
by saddam abu ghaida
This article describes how to convert any Data Table to List of Objects at runtime using Reflection
by Sameera Millavithanachchi
This is a custom mapper which can be used to map two objects instead of automapper
by dietmar paul schoder
Read rows and cells from an xlsx-file: quick, dirty, effective.
by Virender Prajapati
Shutdown, restart, logoff, lock, sleep, hibernate windows using C# and WPF
by pgmr_64804
C# Gantt Chart For Winforms
by PFalkowski
The way of calculating amount of memory occupied by some object in C#.NET
by Mathi Mani
In this tip, we will see how to perform case sensitive comparison of datatables using LINQ
by Gerardo Recinto
A Tracer API, simply. :)
by Shah Ankita
This code sample demonstrates how to set color to any control using colorpicker. For this, you have to create a new Windows phone app.
by Shivarajbk
This tip explains how to write RESTFUL WCF service for Android applications.
by Mawy
To control the speed of scroll viewer component in Windows phone
by Sibeesh KV
Convert CellSet to HTML table
by jansok
A tip on converting multiple image files (BMP, PNG, GIF, JPEG, TIFF) to single or multiple PDF
by Prakash Lekhak
Create a Class-Collection of another Class, Extend a class like a List
by saurabh sri
Basic steps to create ASP.NET WebApi services.
by Dolinka Márk Gergely
Creating a Custom Migration Operation in Entity Framework
by Diluka Wittahachchige
Creating SQL Server database project use in Visual Studio 2012 and maintain versions use in TFS
by SaadZulfiqar
For this, we don't need to worry about the path. Folder will automatically be created in the root folder of zip file.
by Israel Gebreselassie
This tip/trick shows you how to edit the web.config file dynamically .
by D Sarthi Maheshwari
A suggested solution to create Partition based Dictionary (reducing chances of OOM errors and adding capability to hold bigger KVP set in Dictionary).
by Jnana
This article describes steps to create rest api with OAuth and how to use those api using OAuth
by Muddassir Mohammed
Create a CRUD screen using ASP.NET MVC, dapper and jTable in 10 minutes
by Rapuru Amarendra
This tip explains how to create custom helpers in ASP.NET MVC4 step by step clearly. It will be very helpful for those who want to learn ASP.NET MVC as beginners.
by paul1167
A Skeleton of a Single File Generator: Create, Register, Apply
by Shashank S Chandel
Demonstration application using MVC SignalR and Entity framework - Part I
by #realJSOP
Extension method to determine fiscal date
by Snesh Prajapati
Difference between attr() and val() in jQuery
by Rapuru Amarendra
This tip presents the main difference between int.Parse(), Convert.ToInt32() and int.TryParse().
by ATjong
Different items in RadCombobox in each row of RadGrid with sqlDataSource
by sarvesh.upadhyay
Dotnet Simple Rule Engine
by Pinakpani Dey
Microsoft’s Model-View-Controller with Razor View Engine and JQuery make drill-down hierarchal data very easy to develop for web application.
by Duncan Edwards Jones
Expand/collapse your DSL diagram elements to make them easier to work with
by David Lee 145
How to make dynamic DTO with ExpandoObject
by Pinakpani Dey
Using MVC’s Action and JQuery’s Load methods, you can retrieve data for dependent dropdown list as user selects the parent.
by Alon Lek
How to create a program that can run as console or as Windows service easily, and install it without using installutil
by StormyDev
Simple and clean-cut label that user can edit text of during run-time (by double-clicking) which I wrote because the examples I found were either obsolete or added clutter to the interface.
by agent_kruger
There is usually a mis-conception with people thinking "DataGridView Cell.Value" gets the current value of the cell in datagridview. This article will tell you the difference between "EditedFormattedValue v/s Value in Datagridview".
by Arvind Singh Baghel
I am writing code to encrypt password in connection string in config file and decrypt password while getting connection from config file.
by Sherjil_Ahmed
Mixing DB-First and Code First Approach for using SPs in EF-Way
by Mostafa A. Ali
A quick introduction to events for absolute beginners
by arora.abhishek
In this tip, you will learn the new feature of C# 6.0, Exception Filtering.
by Manoj Deshmukh
Executing Stored Procedure that returns resultset using Entity Framework DataContext
by Sridhar Pasham
Export and import database using SMO
by Amit Singh Baghel
A useful tip to export a Div to PDF (with Unicode support) with the help of NReco-PDF Generator for .NET (C#), JQuery and Handler in ASP.NET
by Yuriy Anisimov
Expressmapper - lightweight, lighting fast and easy to use .NET mapper
by Peter Boyall
Quick routine to extract keys from FederationMetaData.xml
by Md. Marufuzzaman
Extract only numbers or characters from a set of characters (string)
by shijo joseph
A simple and fast CSV reader which you can directly use against Oracle and SQL Server databases or for any direct implementation
by Jose Segarra
Fast, really fast, import/export from Excel OOXML
by saurabhsharmacs
If using Identity framework is not possible, one can add the old school forms authentication method.
by Assil
This post demonstrates the simplest use of OWIN with ASP.NET. It will not teach you OWIN nor Claim-based auth, nor design or security.
by SubhamoyBurman
Use of Task Parallel Library and Async/Await in your application
by Erol Esen
An introduction to async functions introduced in C# 2012/2013
by Md._Mehedi_Hasan
This tip will help you to generate .xml file in AngularJs and ASP.NET MVC5 using XElement of C#.
by PIEBALDconsult
This is an alternative for "C# Convert DataTable to List of Objects Dynamically"
by dietmar schoder
Turtle graphics: fundamental C# classes and methods for the artwork production in the area of generative art.
by #realJSOP
Retrieve certificates from the system certificate store
by Manoj Kumar Chaudhari
Allows users to connect to Google spreadsheet(s) and convert them to CSV
by lincoln.dmello
Gotcha when passing in structures to a method that expects an Interface as a parameter
by Leszek Koc
Three different approaches to handle Session access in MVC applications.
by Afzaal Ahmad Zeeshan
This tip is for WPF developers, understanding the usage of lambda expressions for handling the events instead of markup based or function based event handlers.
by sreeyush sudhakaran
Application to add a file header comment at the start of every human-created code file
by vaid_sumit
Achieving Low Coupling & High Cohesion by applying SOLID principles
by Shivi Gupta Lucknow
Using JavaScript and jquery, I will demonstrate how to call codebehind method from the client side. There are three ways of doing so.
by debashishPaul
How to convert LINQ query to DataTable
by Rapuru Amarendra
This tip presents an example of errorlog file creation
by supreetph
Creating and consuming WCF
by Assil
Just one way to solve a common problem of WCF timing out
by Pankaj_chs
How to enable MVC views to compile?
by Rapuru Amarendra
This tip presents an example of encrypt and decrypt password and store in data source.
by Member 11884108
In this tip, we will learn how to load data dynamically to html dropdownlist using Ajax call.
by Rapuru Amarendra
This tip presents an example of TempData to persist data in between the request.
by _Rizwan_Khalid_
Here I will show you how we can register and use multiple classes implementing same interface when Autofac is used as dependencies registrar.
by Rohit Nanda
The easiest way to send form data to Google Docs/Spreadsheet from your web page, using your own form and AJAX. Nowadays, Google Docs/Drive is a widely used service for data storage and documents sharing.
by B. Clay Shannon
Code to send an XML file over the wire using REST / Web API
by BenScharbach
How-To Convert a String Collection to a Multi-Enum item using TryParse
by Rajesh Buddaraju
A simplified example is used to describe the state pattern
by Master-Ram
This is to implement anti forgery token with Ajax post in MVC Application
by Wladis
Calling Commands and Queries from Razor Views using IML instead of Controller
by Adi_Mag
Integrate Serilog with ASP.NET Core application
by Neelesh Vishwakarma
In this tip, we will go step by step on understanding of Signal-R.
by Marco Broccio
IoC in few steps!
by Dinand.dotnet
How to easily run a function in C# from the view using ajax/jquery
by NightRider92
Custom .NET Numerical Keyboard Control
by Peter Silling
Lambda expressions were introduced in Java 8, and the concept is little bit different than in C#. We'll go through how these things are implemented in C# and in Java.
by Yaseer Mumtaz
This small tip will explain how you can check status of long running processes in ASP.NET MVC web application using SignalR by sending messages from server to client during execution.
by MarcusCole6833
A basic Game of Yahtzee
by VC.J
Ways to get multiple values from a single method
by Alon Lek
Create a simple self hosted Web API service that runs as console and as service in just 2 minutes
by JoaoSousa23
This is a short manual on how to create and configure cloud service on azure with a specific version of .NET Framework
by adityasahver
In this article, we will learn how to create an Tile/Page in the MS Band and trigger the details on the associated device
by LShep
This tip describes an IEnumerable extension method that allows you to select an item modulo Count()
by Snesh Prajapati
Moles (Shims) vs. Mock Frameworks Count - Why So Less
by Pritam Deshmukh
This tip elaborates few useful tricks and shortcuts of VS 2013 mainly for professional edition (You can find them with Ultimate version too).
by VijayRana
Some useful MVC Attributes (Bind Attribute, HandleError Attribute, HiddenInput Attribute, Remote Attribute)
by SRS(The Coder)
Introduction to ASP.NET MVC & Its Architecture
by Najam ul Hassan
This will focus the new improvements in the .NET Framework 4.5.3 related to Task\Task Parallel Library
by Magyar András
Almost all of the basic functions of the program(browser, text editor, image editor, media player) that you can associate files with it and open it. I want a simple and effective method to show the arguments (associated files) to open. How to associate files with C# program?
by Reader Man San
Plug-in Architecture To Work in WinForms MVC + WPF MVVM + ASP.NET MVC + Mobile (Xamarin MVC/PhoneGap MVC) + Win 10 Universal App MVC
by Moe Farag
While writing tests for methods that use .NET Reflection, I found out that Rhino doesn't expose stubbed method for reflected invocation.
by Thang Believe
Deep dive into cookies generation to support Remember Me at login
by naren1991
Rendering PXCMImage to Image control in WPF
by Bimaln
Solved the Permission issue when I hosted my ASP.NET application on IIS7
by Ahmed E Osama
Run an executable that is inside the resources in C#
by madhusudhanReddy
Running the SQL Script File
by Mohammed Ibrahim.L
Screenshot using C#
by Mohammad Dayyan, VahidJafari
A library for creating .Net Serializable Expressions to send via WCF services
by Atish Dipongkor
Permissions required to provide a user for custom solutions development like Sandbox, Farm in SharePoint using Visual Studio
by Prashant Kurlekar
Customising ASP.NET MVC client side validation to validate form in parts
by Gaurav Aroraa, Mahsa Hassankashi
In this tip, we will create a small utility using C# which tells us whether our API server is up or down.
by Artur Khondkaryan
Upload Photoshop PSD files, extract layer bitmaps, extract info into xml.
by Prashant Kurlekar
A simple Twitter client application targetting iOS and Android using Xamarin.Forms, Xamarin.Auth and the LinqToTwitter library
by Raj Reddy (INDIA)
Single Sign On feature for applications under same domain.
by santosh poojari
The idea is to source SSRS report datasource with web api output. The datasource can take XML input datasource hence we can allow web api to give us desired XML output dataset in defined format or schema. Once we have that it is easy to sourced or housed it into SSRS reports -RDL or Client RDLC in .
by Vashisth121
Tips to manage state during exceptions
by Veronica S. Zotali
A console application that calculates word occurrences found in a text.
by Giancarlo Rhodes
Creating the Web UI
by idreeskhan
String interpolation or String handling in C# 6.0 with new feature
by Eugene Lepekhin
A better way of handling .NET resources
by Maciej Wojton
Style a WPF TabControl border to be thicker and have rounded corners.
by munagalasantosh
Get all the array index where the sum equals or is greater than some x value
by Hrvoje Batrnek
Easy and seamless caching implementation of any virtual method in any class
by Mina Talaat Ghaly
Add the auditing properties with one SQL query and fill them from one place.
by Dauren Amanbayev
Tools for learning DataGridView, TreeView, File Accessing, Cryptography, Process
by Mohammed Ibrahim.L
How to extract a specific text from a webiste
by Bimaln
How to fix the "Microsoft.Jet.OLEDB.4.0 provider is not registered on the local machine" error.
by me.ajaykumar
Thread safe collections
by Cory Charlton
A thread-safe implementation of the ObservableCollection class
by Matej Pavlů
Creating a replacement for missing TileBrush known from WPF.
by BouncyTarget
Quickly adding alternate languages (Pirate, KJV, ValleyGirl) to your C# form-based application
by LShep
Turn an Enum into a simple state machine via a generic wrapper and modular increment methods
by Veronica S. Zotali
How to use TypedFactoryFacility using Castle.Windsor
by Michal Sobieraj
Implementation of Unit of Work pattern together with simple Repository for MS Dynamics CRM 2015.
by Vinoth Kumar Kannan
Update a Div element using ajax.ActionLink with Loading Panel
by Manoj Deshmukh
Steps to upgrade your Web API Swagger package to 5.2.x version from earlier 4.1.x version
by webmaster442
Download & use the Bing photo of the day in your application
by Reeshabh Choudhary
Web platform based query builder to play with your database :)
by Deepak Kr Choudhary
This article is about the session use in ASP.NET.
by Md Nazmoon Noor
Uses of Func in C#
by Subramanyam Shankar
This tip describes how to use a background worker in WPF along with animation to provide better user experience.
by OriginalGriff
I've answered quite a few questions in the last couple of months about how to get the physical location of a client from a website. And people seem to get annoyed when I say: "Don't. It's no real use". But that's the truth: you can get it, but it won't be accurate. Let's have a look and see why.
by Ly Nguyen - LN
How to use Kendo UI Grid with Web API
by Ksh_Sr
This tip helps you implement the nLog in conjunction with Microsoft.Extension.Logging framework in ASP.NET vNext.
by grantliu
Utilize NLog.net in a Service-oriented architecture
by Uttam Kotdiya -India
This tip demonstrates how to use posix message for Inter Process Communication (IPC) in C#, Mono on Linux
by Mansur Kurtov
This article shows how to use reflections in C#.
by shwetaOnCodePro
Using SignalR for sending real time updates between SharePoint app parts
by Veronica S. Zotali
How to BulkLoad a file with millions of records
by Serge Jerkezian
Using TempData outside the controller in ASP.NET MVC and making TempData less prone to error and more intuitive.
by Muhammad Albedewy
Validate Anti-Forgery in 6 easy steps
by Md. Mainul Islam
This tip will show the ways to incorporate Entity Framework in .NET applications.
by Diego Gonçalves Dias
In this short tip, I am going to teach how to create a Virtual Wall using the Kinect sensor through the Kinect Toolbox.
by RaviAakula
Introducing brand new productivity feature that are released with Visual Studio 2015 Preview Version.
by Mathew Burnett
A very simple program to kill all network interfaces if your VPN goes down.
by Surender Singh (CodeToastDev)
Learn to store/read data from Windows 8 app and available file storage options for Win8 apps.
by Andrew Rober
Windows software licensing data and information in a nutshell
by Jamie Highfield
WinForms .NET Time Chooser grid control.
by ShaikAnwar
This topic gives us an idea of how to write Linq queries on Entities & DataTable. This covers some basic querying and also usage of joins and group by using LINQ.
by Md._Mehedi_Hasan
How to add and work with Resource files in ASP.NET MVC5
by Tanna
This is WPF Gradient Control. I didn't find a suitable gradient control which will generate a linear gradient or radial gradient brush. This is a gradient control which has a color selector and gradient generator. It can generate radial or linear gradient brush.
by Leonid Osmolovski
Speed reduction that may occur when using expressions instead of string constants in INotifyChanged paradigm and a way to work around this