1 | // Licensed to the .NET Foundation under one or more agreements. |
2 | // The .NET Foundation licenses this file to you under the MIT license. |
3 | // See the LICENSE file in the project root for more information. |
4 | // |
5 | // File: CLASS.INL |
6 | // |
7 | |
8 | #ifndef _CLASS_INL_ |
9 | #define _CLASS_INL_ |
10 | //*************************************************************************************** |
11 | inline PTR_MethodDescChunk EEClass::GetChunks() |
12 | { |
13 | LIMITED_METHOD_DAC_CONTRACT; |
14 | return m_pChunks.GetValueMaybeNull(PTR_HOST_MEMBER_TADDR(EEClass, this, m_pChunks)); |
15 | } |
16 | |
17 | //******************************************************************************* |
18 | #ifndef DACCESS_COMPILE |
19 | // Set default values for optional fields. |
20 | inline void EEClassOptionalFields::Init() |
21 | { |
22 | LIMITED_METHOD_CONTRACT; |
23 | m_pDictLayout = NULL; |
24 | m_pVarianceInfo.SetValueMaybeNull(NULL); |
25 | #ifdef FEATURE_COMINTEROP |
26 | m_pSparseVTableMap = NULL; |
27 | m_pCoClassForIntf = TypeHandle(); |
28 | #ifdef FEATURE_COMINTEROP_UNMANAGED_ACTIVATION |
29 | m_pClassFactory = NULL; |
30 | #endif // FEATURE_COMINTEROP_UNMANAGED_ACTIVATION |
31 | m_WinRTRedirectedTypeIndex = WinMDAdapter::RedirectedTypeIndex_Invalid; |
32 | #endif // FEATURE_COMINTEROP |
33 | m_cbModuleDynamicID = MODULE_NON_DYNAMIC_STATICS; |
34 | #if defined(UNIX_AMD64_ABI) |
35 | m_numberEightBytes = 0; |
36 | #endif // UNIX_AMD64_ABI |
37 | } |
38 | #endif // !DACCESS_COMPILE |
39 | |
40 | #endif // _CLASS_INL_ |
41 | |
42 | |