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 using System;
6 using System.Diagnostics;
7 using System.Runtime.InteropServices;
8 
9 using Internal.Runtime.TypeLoader;
10 
11 namespace Internal.Runtime
12 {
13     // Supplies type loader specific extentions to EEType
14     internal partial struct EEType
15     {
GetArrayEETypeInternal.Runtime.EEType16         private static unsafe EEType* GetArrayEEType()
17         {
18             return typeof(Array).TypeHandle.ToEETypePtr();
19         }
20 
ToRuntimeTypeHandleInternal.Runtime.EEType21         internal unsafe RuntimeTypeHandle ToRuntimeTypeHandle()
22         {
23             fixed (EEType* pThis = &this)
24             {
25                 IntPtr result = (IntPtr)pThis;
26                 return *(RuntimeTypeHandle*)&result;
27             }
28         }
29     }
30 }
31