• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #region Copyright notice and license
2 // Protocol Buffers - Google's data interchange format
3 // Copyright 2008 Google Inc.  All rights reserved.
4 //
5 // Use of this source code is governed by a BSD-style
6 // license that can be found in the LICENSE file or at
7 // https://developers.google.com/open-source/licenses/bsd
8 #endregion
9 
10 namespace Google.Protobuf.Reflection
11 {
12     /// <summary>
13     /// Represents a package in the symbol table.  We use PackageDescriptors
14     /// just as placeholders so that someone cannot define, say, a message type
15     /// that has the same name as an existing package.
16     /// </summary>
17     internal sealed class PackageDescriptor : IDescriptor
18     {
PackageDescriptor(string name, string fullName, FileDescriptor file)19         internal PackageDescriptor(string name, string fullName, FileDescriptor file)
20         {
21             File = file;
22             FullName = fullName;
23             Name = name;
24         }
25 
26         public string Name { get; }
27         public string FullName { get; }
28         public FileDescriptor File { get; }
29     }
30 }