Zaman zaman variable lerin type ini degistirmek gerekebilir. Mesela double alan bir method var, ve buna int32 pass etmek istiyoruz. Boyle durumlarda variable'in type ini degistirmeye casting denir.
Eger int long'a veya double'a cevireleekse, burada veri kaybetme riski olmadigindan, implicit bir sekilde yani c# compiler tarafindan bu is halledilir.
Eger double int'e cevirelecekse burada veri kaybetme riski oldugundan, explicit bir sekilde yani user tarafindan variable tipi degistirmek gerekir. Buna da casting denir ve casting operatoru kullanmak icap eder.
http://msdn.microsoft.com/en-us/library/ms173105.aspx
Sunday, January 12, 2014
Subscribe to:
Post Comments (Atom)
Categories
Blog Archive
-
▼
2014
(22)
-
▼
January
(22)
- What is Asynchronous Programming?
- Quality C# (C sharp) Code Examples
- Windows phone emulator not connected to internet
- Using ListBoxes with Buttons and Adding Many Buttons
- Data Binding with a Slider
- Data Binding with Radio Buttons and Two Way Binding
- Data Binding to Control Multiple Objects - Part 1
- High End Windows 8 Phones
- Adding Event Handlers to Controls
- Stack Panel Experiments Part 1
- Using Grid in Windows Phone 8 Development Part 3
- Using Grid in Windows Phone 8 Development Part 2
- Using Grid in Windows Phone 8 Development Part 1
- Simplest Data Binding for Windows Phone 8
- Very simple code using generics
- Casting nedir?
- Generics nedir? Basitce ne ise yariyor
- Windows Store trends, interesting data showing wha...
- How to submit your app to windows app store
- Boxing and Unboxing
- Using Indexers
- Setting logo, publisher name, tile image and some ...
-
▼
January
(22)
Popular Posts
Powered by Blogger.
0 comments:
Post a Comment