Monday 29 August 2016

Part1 C# Introduction

How to create a project?
Open Visual studio => File => New => Project


Select visual C# in Installed Template
Select Console application
Give your project name in Name TextBox
Browse Location  for where it store this project


Sample Program

using System;   //Namespace declaration

class Program
{
    static void Main()  //Main method, The entry point of the project
    {
        //Write in console
        Console.WriteLine("Welcome to my C# blog");
        Console.ReadLine();
    }
}
Output: Welcome to my C# blog


What is Namespace?
     Namespace is collection of classes, interfaces, enums, structs and delegates.
     Namespace is used to organize your code.
For Example,
using System is tells that use of code present inside.

Note:
If we not using System then just type System.Console, but more times we are using System so we declare namespace at top


What is Main method?
     Main method is a entry point into your application

Sample Program

using System;

class Program
{
    static void MainTwo()
    {
        Console.WriteLine("Welcome to my .net blog");
    }

    static void Main()
    {
        Console.WriteLine("Welcome to my C# blog");
        MainTwo();
        Console.ReadLine();
    }
}

Output: 
Welcome to my C# blog
Welcome to my .net blog



Google added two popular games

Google is the one of the best search engine and recently it had added two popular games which are
solitaire and tic-tac-toe.

How to play this game??
* Open your google browser and type on "solitaire" without quotes in search bar. Solitaire has two difficulty of games level.


* Open your google browser and type on "tic-tac-toe" without quotes in search bar. You can select the level of difficulties and even go head to head against a friend.



Enjoy!!



Sunday 28 August 2016

Google gravity

Open your browser and type "google gravity" without quotes in search bar.
Open the webpage "http://mrdoob.com/projects/chromeexperiments/google-gravity/" and just move on your mouse.




Saturday 27 August 2016

Visual Studio shortcut keys

Format document                                        CTRL+K,D
Comment                                                     CTRL+K,C
UnComment                                                CTRL+K,U
Show Intellisense                                         CTRL+Space
Toggle Full screen                                       ALT+Shift+Enter
Build project                                                Shift+F6
Build Solution                                              CTRL+Shift+B/F6
Attach the debugger to a process                 CTRL+ALT+P
Expand or collapse current element            CTRL+M,M
Collapse all                                                  CTRL+M,O
toggle all outlining                                       CTRL+M,L
Convert selected text to UPPERCASE        CTRL+Shift+U
Convert selected text to LOWERCASE      CTRL+U



Google sphere in browser

Open your browser and type "google sphere" without quotes in search bar.
Click the webpage "http://mrdoob.com/projects/chromeexperiments/google-sphere/" and move the mouse pointer, Now the browser is rotating like sphere or circle.







Wednesday 24 August 2016

Visual Studio Tricks

Visual Studio- Remove unused namespaces

Step 1: Right click anywhere in Program
Step2 : Hover the Organize Usings
              1. Remove unused Using => It's removed unused namespaces
              2. Sort Using => It's sorted namespaces by alphabetical
              3. Remove and Sort => It's removed unused namespaces and sorted by alphabetical.


Keyboard Shortcut key: SHIFT+F10+O+R

Note 1: Will performance be an issue, if there are unused Using?
                  No, there won't be any impact on the application performance.

Benefits of removing unused namespaces
* Clear code, which in turn makes in easy to read and maintain
* Intellisense runs faster
* Faster Compilation


Next Articles
Visual studio shortcut keys



Just Relax

Your name instead of Google in Google homepage

By default the google search is showed 'Google' logo and we try to change the name instead of google as below screenshot.

Balamurugan-in-my-way

How is possible?

Step 1- Type "Google in my way" in google search bar.
Step 2- The link should go to Google my way page
Step 3- Type your name(what you want) and click 'create' button.