blob: 860285c10f23412cd5df454939670ddecb161039 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
namespace Internal.TypeSystem
{
public partial class TypeDesc
{
/// <summary>
/// Gets a value indicating whether this is a type that needs to be treated
/// specially.
/// </summary>
public bool IsIntrinsic
{
get
{
return (GetTypeFlags(TypeFlags.IsIntrinsic | TypeFlags.AttributeCacheComputed) & TypeFlags.IsIntrinsic) != 0;
}
}
}
public partial class InstantiatedType
{
partial void AddComputedIntrinsicFlag(ref TypeFlags flags)
{
if (_typeDef.IsIntrinsic)
flags |= TypeFlags.IsIntrinsic;
}
}
}
|