Search This Blog

Monday, August 29, 2011

C# 4.0 – Ch:02:E – Projects & Solutions : Continued


If you like this article, please click on +1 button and share with your friends.

Click here for the Video Tutorial of this article.
visit www.iGnani.com


...continued from article "C# 4.0 – Ch:02:D – Projects & Solutions

In the previous article, I stopped with AssemblyInfo.cs file under the Properties folder. In this article, I will continue with the References folder.

Check out the image below, where in all the folders are expanded and you can see a list of files under the References folder.

SolutionExplorer1[2]

Under the folder “References”, you will find all the libraries that are referenced automatically for us by Visual Studio. Though not all assemblies that are referenced are necessary for the project we developed, Visual Studio references the most common assemblies that are used while developing a Console based application.

Thursday, August 25, 2011

C# 4.0 – Ch:02:D – Projects & Solutions

If you like this article, please click on +1 button and share with your friends.

Click here for the Video Tutorial of this article.
visit www.iGnani.com


...continued from article "C# 4.0 – Ch:02:C – Hello C# World Up-Close : Continued

In our previous article, we finished with the dissection of the code in Program.cs file.  But, that does not mean that we looked at everything. Visual Studio just did not create the template code for us in the file Program.cs, but it did a lot of work for us.

 SolutionExplorer

Take a look at the above image of the “Solution Explorer”. If you have not changed any of the default settings in your Visual Studio, you will probably find the “Solution Explorer” at the top-right corner of your Visual Studio. If you don’t find it there, there is no need to worry about, just go to the View menu and select Solution Explorer.

Wednesday, August 24, 2011

C# 4.0 – Ch:02:C – Hello C# World Up-Close : Continued

If you like this article, please click on +1 button and share with your friends.

Click here for Video Tutorial's.
visit www.iGnani.com

...continued from article "C# 4.0 – Ch:02:B – Hello C# World Up-Close

In our previous article, we created finished with namespaces. Let us continue with our dissection of the code we wrote in the previous article.

The namespace is followed by an open brace ({) and closed with a closing brace (}) and all the code goes in between these two braces. As I have mentioned earlier, C# uses braces to denote a block, where in everything inside these braces that follow the namespace will be a part of the Demo1 namespace.

Namespaces contain types and the code that follows immediately after the opening brace in our code defines a type.

namespace Demo1
{
    class Program
    {
    .....
    }
}

Tuesday, August 16, 2011

C# 4.0 – Ch:02:B – Hello C# World Up-close


If you like this article, please click on +1 button and share with your friends.

Click here for the Video Tutorial of this article.
visit www.iGnani.com


...continued from article C# 4.0 – Ch:02:A – Language Basics

In our previous article, we created our first C#.NET program, executed it and enjoyed seeing out first program showing the results. But, we never got into the details of what was happening. In this article, let’s look at the code and Dissect it since these are the things you’ll deal with every time you write programs in C#.

Before getting into the code, let’s look at a few general notes about C# syntax. This list does mean everything and just represent few tips. I will continue to cover them as we use them in the coming articles.

  • In C#, as in other C style languages, most statements end in a semicolon ( ; ) and can carry on over multiple lines without needing a continuation character as in other languages such as Visual Basic.
  • Multiple statements can be joined into blocks using curly braces ( {…} ).
  • Single line comments begin with two forward slash characters ( // ), and multiline comments begin with a slash and an asterisk ( /* ) and end with the same combination reversed ( */ ).
  • C# is case sensitive, which means that variables named myVar and myvar are two different variables.

Wednesday, August 10, 2011

Adobe Edge Preview – Introduction


If you like this article, please click on +1 button and share with your friends.

Click here for the Video Tutorial of this article.
visit www.iGnani.com


Introduction

Adobe® Edge is a new web motion and interaction design tool that allows designers to bring animated content to websites, using web standards like HTML5, JavaScript, and CSS3.

This is an early look at Edge with more capabilities to come in the future releases. Edge will be updated regularly to add new functionality, stay ahead of evolving web standards, and incorporate user feedback to provide the best functionality and experience possible.

Edge Preview Highlights

This version of Edge focuses primarily on adding rich motion design to new or existing HTML projects, that runs beautifully on devices and desktops.

C# 4.0 – Ch:02:A – Language Basics


If you like this article, please click on +1 button and share with your friends.

Click here for the Video Tutorial of this article.
visit www.iGnani.com

…. continued from previous article “C# 4.0 – Ch:01:E – Assemblies

First program in C#.NET 4.0

In this chapter, we shall start with writing our first program in C#.NET 4.0.

In this tutorial, we will be working in Visual Studio 2010. Visual Studio 2010 is a fully integrated development environment from Microsoft, designed to make the process of writing code, debugging it and compiling it to an assembly to be shipped as easy as possible. Though there are other ways to build C# programs, but Visual Studio is the most widely used and it’s also freely available as an express edition, so we’ll stick with that.

Note: If you don’t have Visual Studio, you can download the free Express edition from http://www.microsoft.com/express/.

I am going to keep this article as simple as possible. Don’t worry if you don’t know how to use Visual Studio 2010 or the Express edition. Though I am not going to cover Visual Studio in detail in this tutorial, I will explain the important features and how to make use of them as we progress through this article. For now, all you need to do is try it out as explained below without worrying about the details.

Sunday, August 7, 2011

C# 4.0 – Ch:01:E – Assemblies


If you like this article, please click on +1 button and share with your friends.

Click here for the Video Tutorial of this article.
visit www.iGnani.com

…previous article “C# 4.0 – Ch:01:D – Garbage Collector & Security in .NET

What are assemblies?

An assembly is the .NET term for a deployment and configuration unit, which contains compiled code targeted at the .NET Framework and can be either an EXE or a DLL. For both EXE and DLL (executable code and library code), same assembly structure is used. The only real difference is that, while an EXE contains a main program entry point, a DLL does not.

Assemblies are logical rather than a physical unit, which means that it can be stored across more than one file. If an assembly is stored in more than one file, there will be one main file that contains the entry point and describes the other files in the assembly.

C# 4.0 – Ch:01:D – Garbage Collector & Security in .NET


If you like this article, please click on +1 button and share with your friends.

Click here for the Video Tutorial of this article.
visit www.iGnani.com


….continued from “C# 4.0 – Ch:01:C – Language Interoperability

Garbage Collector (GC)

All .NET programs that run in a managed environment is provided automatic memory management by the .NET CLR. However, to take proper advantage of this automatic memory management requires you to have an overview of the .NET memory management environment. In this chapter, I’ll explain how the automatic memory management in the CLR works.

The Garbage Collector (GC) is .NET ’ s answer to memory management. The GC manages the memory in managed code for you. The purpose of GC is to clean up memory.

C# 4.0 – Ch:01:C – Language Interoperability


If you like this article, please click on +1 button and share with your friends.

Click here for the Video Tutorial of this article.
visit www.iGnani.com


…continued from previous article “C# 4.0 – Ch:01:B – Close-up with .NET

Language Interoperability

When we say Language Interoperability, what we really mean by this is that classes written in one language are able to talk directly to classes written in another language. To be more specific we can say that:

  • A class written in one language can be inherited by a class written in another language.
  • Irrespective of the language used, a class can have instances of other classes that have been written in one or more languages as per my previous point.
  • An object written in one language can directly call and make use of methods or properties from another object written in another language.
  • Objects written in different languages can be passed as arguments and return values irrespective of the language the code is written.
  • C# 4.0 – Ch:01:B – Close-up with .NET


    If you like this article, please click on +1 button and share with your friends.

    Click here for the Video Tutorial of this article.
    visit www.iGnani.com


    …continued from previous article “C# 4.0 – Ch:01:A – Introduction
    In this chapter, I am going to get close-up with .NET. Let us look at some of the features that it provides us.

    Object Orientation

    .NET supports object-oriented programming, with single implementation inheritance of classes and includes encapsulation, inheritance, and polymorphism.

  • Encapsulation means that a group of related properties, methods, and other members are treated as a single unit or object.
  • Inheritance describes the ability to create new classes based on an existing class.
  • Polymorphism means that you can have multiple classes that can be used interchangeably, even though each class implements the same properties or methods in different ways.
  • C# 4.0 – Ch:01:A – Introduction


    If you like this article, please click on +1 button and share with your friends.

    Click here for the Video Tutorial of this article.
    visit www.iGnani.com


    C#—pronounced “See Sharp”—is a programming language designed for Microsoft’s .NET platform. C# is a general-purpose, type-safe, object-oriented programming language. The chief architect of the language since its first version is Anders Hejlsberg (creator of Turbo Pascal and architect of Delphi). The goal of C# is to provide a simple, safe, modern, object-oriented, Internet-centric, high-performance language for .NET development.
    C# was first announced in July 2000 with the announcement of the .NET platform by Microsoft. It was released in January 2002 with .NET framework 1.0. C# was first called “Cool” which stood for "C-like Object Oriented Language”.
    C# is a strongly typed object-oriented language whose code visually resembles C++ (and Java). This decision by the C# language designers allows C++ developers to easily leverage their knowledge to quickly become productive in C#. C# syntax differs from C++ in some ways, but most of the differences between these languages are semantic and behavioral, stemming from differences in the runtime environments in which they execute.

    220px-Anders_Hejlsberg
    Anders Hejlsberg