262 |
if(classInfo) |
if(classInfo) |
263 |
{ |
{ |
264 |
/* Locate the static constructor within the class */ |
/* Locate the static constructor within the class */ |
265 |
IL_METADATA_RDLOCK(thread); |
IL_METADATA_RDLOCK(_ILExecThreadProcess(thread)); |
266 |
method = 0; |
method = 0; |
267 |
while((method = (ILMethod *)ILClassNextMemberByKind |
while((method = (ILMethod *)ILClassNextMemberByKind |
268 |
(classInfo, (ILMember *)method, IL_META_MEMBERKIND_METHOD)) != 0) |
(classInfo, (ILMember *)method, IL_META_MEMBERKIND_METHOD)) != 0) |
272 |
break; |
break; |
273 |
} |
} |
274 |
} |
} |
275 |
IL_METADATA_UNLOCK(thread); |
IL_METADATA_UNLOCK(_ILExecThreadProcess(thread)); |
276 |
|
|
277 |
/* Call the static constructor if we found it. The method |
/* Call the static constructor if we found it. The method |
278 |
itself contains instructions that prevent multiple calls */ |
itself contains instructions that prevent multiple calls */ |