Monday, 23 March 2015
MVC routing
Friday, 20 March 2015
c# hashtable vs dictionary
convert list to string c#
I will demonstrate three ways to convert list to string c# with “,” seperated and you will see that which one is taking less time in execution.
Thursday, 5 March 2015
showing viewdata in MVC 5 on razor view
Saturday, 28 February 2015
read json in c#
how to read class property name in c#
Saturday, 20 December 2014
Thursday, 18 December 2014
Convert number to words c# code
Friday, 12 December 2014
stylecop visual studio
A simple design page : When inserting the Name checking the text value
Setting of Style Cop Rules and Properties
Rule Selection
a) Click on the check box to check or uncheck the rules to apply for code analysis, By default it is checked for all rules
Company Information
Run the style Cop to check the code analysis
Either from Toolsà Run the Style Cop
Or Right click on project explorer à Run the Style Cop
When you run it it will give the Warnings if it will break the rules.
On Running the Style Cop
Output Code snippet
After rectifying all the warning by Style cop getting result Violation count : 0
Exclude the Particular File from Style Cope
Creating Custom Rule
Steps to Creating Custom rule
1> Creating One Class Library file
2> Import the two DLL and reference it to project
using Microsoft.StyleCop.CSharp;
using Microsoft.StyleCop;
From C:\Program Files\Microsoft StyleCop 4.4.0.14
3> Add one XML File for configuration
4> Successfully Build the code in Release mode
5> Place the DLL into
C:\Program Files\Microsoft StyleCop 4.4.0.14
Code Snippet for Custom Rule to Check Data Base is Closed or Not “.CS file”
XML Code Snippet
Get the Custom Style Cop Rule into project
Custom Warning

