diff options
Diffstat (limited to 'csharp/ProtocolBuffers/Descriptors/FileDescriptor.cs')
-rw-r--r-- | csharp/ProtocolBuffers/Descriptors/FileDescriptor.cs | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/csharp/ProtocolBuffers/Descriptors/FileDescriptor.cs b/csharp/ProtocolBuffers/Descriptors/FileDescriptor.cs index 9e065c86..b3beea0b 100644 --- a/csharp/ProtocolBuffers/Descriptors/FileDescriptor.cs +++ b/csharp/ProtocolBuffers/Descriptors/FileDescriptor.cs @@ -1,8 +1,23 @@ -using System; +// Protocol Buffers - Google's data interchange format +// Copyright 2008 Google Inc. +// http://code.google.com/p/protobuf/ +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +using System; +using System.Collections.Generic; using System.Collections.ObjectModel; using Google.ProtocolBuffers.DescriptorProtos; -using System.Collections.Generic; -using Google.ProtocolBuffers.Collections; + namespace Google.ProtocolBuffers.Descriptors { /// <summary> @@ -10,7 +25,7 @@ namespace Google.ProtocolBuffers.Descriptors { /// IDescriptor is implemented such that the File property returns this descriptor, /// and the FullName is the same as the Name. /// </summary> - public class FileDescriptor : IDescriptor<FileDescriptorProto> { + public sealed class FileDescriptor : IDescriptor<FileDescriptorProto> { private readonly FileDescriptorProto proto; private readonly IList<MessageDescriptor> messageTypes; |