Hi, I have various questions on ilasm: 1. 'beforefieldinit' attr seems to be always used for class without static ctor (.cctor). For type with static ctor, then it must not be used. Is this a correct assumption ?
2. What's really the purpose of 'preservesig' ? The spec says something about HRESULT retval, but this is always used for any retval type in pinvokeimpl. It seems all pinvokeimpl declarations use it, regardless the return type of the unmanaged method. 3. I don't quite understand the use for fault handler. What C# exception construct is related to this ? 4. Why does 'refanyval' opcode require the token param ? The 'refanytype' opcode does not need it. It seems having the typederf operand on the stack is sufficient 5. What's the internal type used by eval stack to hold typedref data ? Specifically the result of mkrefany is of such type. Serge's book says the type is '*' which is for any type, but it seems it should be native unsigned int since it's some sort of opaque handle. Thanks =================================== This list is hosted by DevelopMentorŪ http://www.develop.com Some .NET courses you may be interested in: Essential .NET: building applications and components with CSharp August 30 - September 3, in Los Angeles http://www.develop.com/courses/edotnet View archives and manage your subscription(s) at http://discuss.develop.com