C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » .NET »

DataType Diffence


Posted Date: 06 Nov 2009      Posted By: Nagarajan      Member Level: Silver     Points: 1   Responses: 6



Hi all,

Please Tell me .. what is the Difference bool and Boolean Data type...?

Thanks in advance

Regards,

Naresh

Don't Scream for a Change... Become a Change..

Do not forget to Rate the post..





Responses

Author: Anil Kumar Pandey    06 Nov 2009Member Level: DiamondRating: 2 out of 52 out of 5     Points: 2

one is type and other is Class

Bool - type
Boolean -- Class

Thanks & Regards
Anil Kumar Pandey



Author: HimaBindu Veeramachaneni    06 Nov 2009Member Level: DiamondRating: 2 out of 52 out of 5     Points: 2

C# bool is an alias for System.Boolean.

Boolean works in vb or C# where as bool works only in c#

http://dotnetspider.com/mentors/18-HimaBindu-Veeramachaneni.aspx?tab=details'



Author: Hari    06 Nov 2009Member Level: GoldRating: 2 out of 52 out of 5     Points: 2

bool is an alias for System.Boolean just as int is an alias for System.Int32. System.Boolean is CLR specific where bool is C# specific. You can use either one of them and the CTS takes care of the conversion into CIL.


Author: Abhisek Panda    06 Nov 2009Member Level: GoldRating: 2 out of 52 out of 5     Points: 2

As said by others bool is an alias for System.Boolean. System.Booleant is the CTS format of .NET. So it will work in any language. But bool will work only in C#.

Thanks And Regards,
Abhisek Panda
Be Happy And Make Others Happy.
Go Green and Save Your Future.



Author: naga sham    08 Nov 2009Member Level: BronzeRating: 2 out of 52 out of 5     Points: 2

yes bool works only in c# where as boolean works in entire .net


Author: Kirtan    08 Nov 2009Member Level: SilverRating: 2 out of 52 out of 5     Points: 2

Both are Same Just Alias Are Given By Microsoft


bool = System.Boolean

and also you can Directly call Boolean Class

Kirtan Patel
-----------------------------------------------------
Master Of Computer Application(Sem-1)
Bachelore of Computer Application



Post Reply
You must Sign In to post a response.
Next : Section expert in crystal report
Previous : Custom serialization
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use