??????????????????????????????????
???????????? ???????[ 2013/1/24 11:39:55 ] ????????
????????????????????????
???????????У???????????????????????????????????????????????
?????????????????????Щ???????????????????????????????????????????????????????????????????ò?????????????????????????????????????????????о??????????????????????????????????
???????????
????????????????????????????????????????????????????????????á???????????????????VB?????byref??byval???????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????У??????????????????????????????????????????????
???????????????????????????
namespace _1
{
class ValueClass //??????
{
public int value = 0;
}
class ValueAndRefType //??????
{
public static void Main() //????
{
int a = 0; //a????????δ????0
int b = a;
b = 10;
ValueClass ref1 = new ValueClass(); //?????????ref1
ValueClass ref2 = ref1; //?????????ref2???????ref1
ref2.value = 10;
Console.WriteLine("Value:{0}??{1}"?? a?? b); //?????ref2??????
Console.WriteLine("Refs:{0}??{1}"?? ref1.value?? ref2.value); //???ref2?????????????ref1??ref2?????????
}
}
}
???н????
Value??0??1
Refs??10??10
???????????????У???????????????a??b???????b??????????????a?????a?????0.?????????ref2???????10?????????ref1??ref2????????????????ref1????????????refs??10??10.
???????????
??????????????????????????????????????????????????????????VB?е??????????
??????????
???????????????object????????????????????????????????????????????????????С?
int num =2012??
object obj =num??
????????????????????????????num????????У????俽????obj???????????С????????????????????????????obj????????????????????int?????????
???????????
??????????obj??????????????
int num=2012??
object obj=num??
int num1=??int??obj??
????????????δ???????????????????????У??????????????????????????????????????????????????£????????????????????κ???????????????????????
???????????????????????????????????????????????????VB?????У????????????????????????У??????к??????????????????????VB?????????????????????????
??????

???·???
App??С????H5?????????????????Щ??
2024/9/11 15:34:34?????????????????????????
2024/9/10 11:13:49P-One ???????????????????????????????????????
2024/9/10 10:14:12???????????????????????????
2024/9/9 18:04:26??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44