| | | 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 | | |
| | | 4 | | using System.Collections.Immutable; |
| | | 5 | | |
| | | 6 | | namespace System.Reflection.Metadata.Ecma335 |
| | | 7 | | { |
| | | 8 | | internal sealed class NamespaceData |
| | | 9 | | { |
| | | 10 | | public readonly StringHandle Name; |
| | | 11 | | public readonly string FullName; |
| | | 12 | | public readonly NamespaceDefinitionHandle Parent; |
| | | 13 | | public readonly ImmutableArray<NamespaceDefinitionHandle> NamespaceDefinitions; |
| | | 14 | | public readonly ImmutableArray<TypeDefinitionHandle> TypeDefinitions; |
| | | 15 | | public readonly ImmutableArray<ExportedTypeHandle> ExportedTypes; |
| | | 16 | | |
| | 0 | 17 | | public NamespaceData( |
| | 0 | 18 | | StringHandle name, |
| | 0 | 19 | | string fullName, |
| | 0 | 20 | | NamespaceDefinitionHandle parent, |
| | 0 | 21 | | ImmutableArray<NamespaceDefinitionHandle> namespaceDefinitions, |
| | 0 | 22 | | ImmutableArray<TypeDefinitionHandle> typeDefinitions, |
| | 0 | 23 | | ImmutableArray<ExportedTypeHandle> exportedTypes) |
| | 0 | 24 | | { |
| | 0 | 25 | | this.Name = name; |
| | 0 | 26 | | this.FullName = fullName; |
| | 0 | 27 | | this.Parent = parent; |
| | 0 | 28 | | this.NamespaceDefinitions = namespaceDefinitions; |
| | 0 | 29 | | this.TypeDefinitions = typeDefinitions; |
| | 0 | 30 | | this.ExportedTypes = exportedTypes; |
| | 0 | 31 | | } |
| | | 32 | | } |
| | | 33 | | } |
| | | 34 | | |