By Blog User on
3/27/2012 9:42 PM
How to customize the View Response menu link and the Response Survey button in just a few steps through Javascript
|
By Blog User on
3/3/2012 3:42 PM
Sometimes it's neccesary to retrieve the User's Full Name (or Display name) instead of just the network Name.
This can be easily obtained from the System.DirectoryServices.AccountManagement namespace introduced with the .NET Framework 3.5. This Namespace gives you access to the UserPrinciple class which encapsulates "principles that are from user accounts."
|
By Blog User on
7/11/2011 5:42 PM
using System;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
public class Employee {
public int id;
public string firstName;
public string lastName;
public static ArrayList GetEmployeesArrayList() {
ArrayList al = new ArrayList();
al.Add(new Employee { id = 1, firstName = "J", lastName = "R" });
al.Add(new Employee { id = 2, firstName = "W", lastName = "G" });
al.Add(new Employee { id = 3, firstName = "A", lastName = "H" });
al.Add(new Employee { id = 4, firstName = "D", lastName = "L" });
al.Add(new Employee { id = 101, firstName = "K", lastName = "F" });
return (al);
}
public static Employee[] GetEmployeesArray() {
return ((Employee[])GetEmployeesArrayList().ToArray());
}
}
public class MainClass {
public static void Main() {
Dictionary eDictionary = Employee.GetEmployeesArray().ToDictionary(k => k.id, i => string.Format("{0} {1}",i.firstName, i.lastName));...
|
By Blog User on
1/5/2011 11:49 AM
|
By Blog User on
1/19/2010 6:32 PM
The following file contains an example developed with PostSharp.
http://www.postsharp.org
It shows the name of a method, before and after its implementation.
|
By Blog User on
1/11/2010 3:12 PM
For the rules to be taken as a basis for the server, it will be necessary to replace the existing file at the following location with the file of this Post.
C:\Program Files\MSBuild\Microsoft\StyleCop\v4.3
or in
C:\Program Files\Microsoft StyleCop 4.3.2.1
Depending on whether the installation was performed on the Build, or not.
This file is focused on those rules that we want to respect at the source code and allows a major order of it.
Additionally, the inclusion of comments facilitates the generation of automatic documentation.
Installation of StyleCop with Visual Studio
For the StyleCop be integrated with Visual Studio, you need to install: the StyleCop, the ReShareper and a PlugIn for the StyleCop.
The steps to install these programs are the following:
1) Install Microsoft.StyleCop.msi
2) Install ReSharperSetup.4.5.1231.7.msi
3) Install StyleCop.For.ReSharper.Setup.v4.5.15.0.msi
Here, I attach you the needed files.
Resharper with StyleCop.zip...
|
By Blog User on
1/11/2010 3:12 PM
|
By Blog User on
8/31/2007 4:57 PM
|
By Blog User on
5/8/2007 2:51 PM
It generates properties with the required virtual for NHibernate. It's recommended to write the name of the variable in lowercase and then just change the first letter to uppercase of property.
GetSet.xml
|