Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 16-11-2009
Member
 
Join Date: Sep 2009
Posts: 131
Type alias in Csharp

I am assigned to work on a project on Microsoft .NET. This requires me to be friendly with Csharp. I have never learnt any programming language in detail and now I have to learn Csharp. I am not able to grasp many of its concepts. I am not getting what is a type alias in Csharp. Please help this is my first project.
Reply With Quote
  #2  
Old 17-11-2009
Member
 
Join Date: Apr 2008
Posts: 1,948
Re: Type alias in Csharp

The Common Language Runtime designed by Microsoft is said to be the Heart of .Net. There are a few aliases which are there in C# that can be used for intrinsic Common Language Runtime. Alias means another name. We can make use of aliases instead of types and vice-versa. So therefore, we can use System.Int32 inplace of the keyword int.
Reply With Quote
  #3  
Old 17-11-2009
Member
 
Join Date: Apr 2008
Posts: 2,001
Re: Type alias in Csharp

Csharp is really the most useful language to work on .NET platform application. I too had hard time initially to study the Csharp concepts. A type
alias is simple another keyword for Commmon Language Runtime Type in Csharp.
eg.
Code:
string aliaseg = new System.String ('*', 7);
In the above example, we have used string keyword as an alias for Common Language Runtime type System.String
Reply With Quote
  #4  
Old 17-11-2009
Member
 
Join Date: May 2008
Posts: 2,383
Re: Type alias in Csharp

Csharp has a feature that allows its user to make use of an "alias" for a namespace. Thus consider this namespace: MadProps.Windows.Controls. You can make a use of an alias as:
using mpc = MadProps.Windows.Controls;
Thus now you can use mpc instead of using MadProps.Windows.Controls again and again.
__________________
The FIFA Manager 2009 PC Game
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "Type alias in Csharp"
Thread Thread Starter Forum Replies Last Post
BOXING and UNBOXING in CSharp Izek Software Development 3 21-11-2009 11:57 PM
Lambda expressions in Csharp Izek Software Development 3 17-11-2009 04:32 AM
Are constructors in Csharp inherited? Joel5 Software Development 3 14-11-2009 06:47 PM
Exception Handling in Csharp Jesus2 Software Development 3 11-11-2009 11:22 PM
What do you mean by Csharp Delegates? Jarini Software Development 3 11-11-2009 09:57 PM


All times are GMT +5.5. The time now is 10:06 PM.