请问各位大牛,以下代码是什么意思啊(C#语法)?
代码一:
private static byte[] wmLinkVal = new byte[] {
0x68, 0x74, 0x74, 0x70, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x56, 0x69, 0x73, 0x69, 0x66,
0x69, 0x72, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6c, 0x69, 0x63, 0x65, 110, 0x73, 0x65, 0x2e,
0x70, 0x68, 0x70
};
private static byte[] wmRegVal = new byte[] {
0x56, 0x69, 0x73, 0x69, 0x66, 0x69, 0x72, 0x65, 0x20, 0x54, 0x72, 0x69, 0x61, 0x6c, 0x20, 0x45,
100, 0x69, 0x74, 0x69, 0x6f, 110
};
代码二:
protected virtual void LoadWm(GaugeTypes type)
{
if (CS$<>9__CachedAnonymousMethodDelegatef == null)
{
CS$<>9__CachedAnonymousMethodDelegatef = new Func(null, (IntPtr) b__d);
}
if (CS$<>9__CachedAnonymousMethodDelegate10 == null)
{
CS$<>9__CachedAnonymousMethodDelegate10 = new Func(null, (IntPtr) b__e);
}
this.CreateWmElement(type, new string(Enumerable.Select(wmRegVal, CS$<>9__CachedAnonymousMethodDelegatef).ToArray()), new string(Enumerable.Select(wmLinkVal, CS$<>9__CachedAnonymousMethodDelegate10).ToArray()));
}
不明白啊,我知道是16进制的数组,但为什么这样写呢,直接用 Int 数组不就行了吗?
代码一中定义的数组wmLinkVal 在代码二这个函数中被用到:
这上面的二段代码是什么意思?看不懂,请大家指点。谢谢!