Showing posts with label visual studio. Show all posts
Showing posts with label visual studio. Show all posts

Friday, November 11, 2011

Visual Studio Code Analyzer

Visual studio (only for Ultimate and Premium edition) has very important tool for code analyzing. With help of code analyzer, developer can make rules for coding. Visual studio analyzer tool has in built 200 rules. If you don't has ultimate and premium edition, you can use FxCop as code analyzer.

I found great episode by Rebert green on channel 9. 


Tuesday, July 12, 2011

C# : Tupel


Array can combine objects which have same type, but some time we need to combine objects which have different types. For that in Framework 4.0, Microsoft introduces new feature Tupel. Tuple provides facility to combine of different type of object in one object. Tupel is derived from programing language such as  F# or like Haskell in Python.  With .NET 4 , Tupel is available for all .NET languages.

Example
namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            //get age from passed birthdate
           Tuple<int,int,int> age = calculateAge(new DateTime(1982,4,4));
            //Tuple value can access with age.Item1.........
           Console.WriteLine("Age {0} years, {1} months, {2} days", age.Item1, age.Item2, age.Item3);
           Console.ReadKey();
        }

Friday, June 24, 2011

Windows Phone 7 Development

Windows Phone 7 Development.

Introduction

For programmes, Windows Phone 7 is also exciting, for it supports two popular and modern
Programming platforms: Silverlight and XNA.

Silverlight

A spinoff of the client-based Windows Presentation Foundation (WPF) has already given Web programmers unprecedented power to develop sophisticated user interfaces with a mix of traditional controls, high-quality text, vector graphics, media, animation, and data binding that run on multiple platforms and browsers. Windows Phone 7 extends Silverlight to mobile devices.

Generally you’ll choose Silverlight for writing programs you might classify as applications or utilities. These programs are built from a combination of markup and code. The markup is the Extensible Application Markup Language, or XAML and pronounced “zammel”. The XAML mostly defines a layout of user-interface controls and panels. Code-behind files can also perform some initialization and logic, but are generally relegated to handling events from the controls. Silverlight is great for bringing to the Windows Phone the style of Rich
Internet Applications (RIA), including media and the Web. Silverlight for Windows Phone is a version of Silverlight 3 excluding some features not appropriate for the phone, but compensating with some enhancements.

Thursday, June 23, 2011

Tips and Tricks : Visual Studio 2010

Visual Studio 2010

I found good post from my friend divyang blog http://divyang4481.blogspot.com. I like to share with you. It may be increase productivity you.

Tip #1 – You don’t need to select a line to copy or delete it

I always cringe whenever I see someone select an entire line of code in the Visual Studio code editor before copying the line or deleting the line (see Figure 1). You don’t need to do this.
Figure 1
image
f you want to copy a line of code then you can simply press CTRL-c to copy the line and press CTRL-v to paste the line. If you want to delete a line, don’t select it first, just press CTRL-x. You’ll be surprised how much time this one tip will save you.

Friday, June 17, 2011

Windows Phone Developer Tools 7.1 Beta

Mango comes with 500 new features which includes enhanced Facebook, Twitter and LinkedIn integration, hands-free messaging, a multiple email inbox and the ability to chat with friends using Facebook Chat, Windows Live Messenger and SMS in the same thread. Mango also brings with it the Office365 and IE9 experiences. Mango, is first smart phone which provides multiprocessing between different customize application.