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 »

What is "Check" keyword in dotnet


Posted Date: 21 Nov 2008      Posted By: shiji      Member Level: Silver     Points: 1   Responses: 4



What is "Check" keyword in dotnet




Responses

Author: Jigar Joshi    21 Nov 2008Member Level: GoldRating: 2 out of 52 out of 5     Points: 2

do you mean by "Checked" keyword?

If u mean by "checked", then this keyword is used
to check datatype overflow..

Regards
J



Author: Bunty    21 Nov 2008Member Level: DiamondRating: 2 out of 52 out of 5     Points: 4

Hi,

The checked and unchecked keywords are used to control the overflow-checking for integral-type arithmetic operations and conversions. It can be used as an operator or a statement.

For more details check the following webpage,

http://geertverhoeven.blogspot.com/2007/02/checked-and-unchecked-keyword_10.html

Regards
S.S.Bajoria


Thanks & Regards
S.S.Bajoria



Author: shiji    21 Nov 2008Member Level: SilverRating: 2 out of 52 out of 5     Points: 1

Hi Satyanarayan

Thank you Very Much.........................
Shiji



Author: gowthami chowdary    22 Nov 2008Member Level: GoldRating: 2 out of 52 out of 5     Points: 5

In a checked context, if an expression produces a value that is outside the range of the destination type, an exception will be thrown.

In an unchecked context, if an expression produces a value that is outside the range of the destination type, the value will be truncated.

The checked and unchecked keywords are used to control the overflow-checking for integral-type arithmetic operations and conversions. It can be used as an operator or a statement.



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : clipboard doubt in c#
Previous : Create Chart in VB DotNet Urgent !!!!!!!!!!!!!!!!
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use