asp.net中的CAST技术 [英] CAST technique in asp.net

查看:276
本文介绍了asp.net中的CAST技术的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想在我的asp.net应用程序中实现聚类 CAST技术.但是我不知道编码和实现以及那些东西.所以请谁能帮助我解决这个问题.

谢谢..

Hi,

I want to implement clustering CAST technique in my asp.net application. But i dont know the coding and implementations and those things. so plz can anyone to help me to solve this..

Thanking you..

推荐答案

为什么不看一下msdn-
Why don''t you have a look at msdn - http://msdn.microsoft.com/en-us/library/ms173105.aspx[^].


主要,有内置的数据类型,用户定义数据类型,枚举
上述所有数据类型都属于值"类型或引用"类型.
进行转换以进行显式转换,如msdn中所述.
可以将Giraffi保存在动物中.
Primarily, there are Built in data types, User Define data types, Enumerations
All the above mentioned data types falls under either Value type or Reference type.
Casting is done for explicit conversion, like explained in msdn.
A Giraffi can be saved in A Animal.
i.e. 
Giraffi g;
Animal a = g; 
this is implicit conversion.

but this cannot be done 
Giraffi g=a; //it gives error

for this to work we need to do casting.
Giraffi g=(Giraffi)a; //now this is explicit casting, it works perfect though it effects performance



希望你理解我的观点.
谢谢



Hope you understood my point.
thanks


这篇关于asp.net中的CAST技术的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆