The Labs \ Source Viewer \ SSCLI \ System.Xml.Serialization.Configuration \ SerializationSectionGroup

  1. //------------------------------------------------------------------------------
  2. // <copyright file="SerializationSectionGroup.cs" company="Microsoft Corporation">
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. // </copyright>
  14. // <owner current="true" primary="true">ElenaK</owner>
  15. //------------------------------------------------------------------------------
  16. namespace System.Xml.Serialization.Configuration
  17. {
  18.     using System.Configuration;
  19.    
  20.     /// <summary>
  21.     /// Summary description for SerializationSectionGroup.
  22.     /// </summary>
  23.     public sealed class SerializationSectionGroup : ConfigurationSectionGroup
  24.     {
  25.         public SerializationSectionGroup()
  26.         {
  27.         }
  28.        
  29.         // public properties
  30.         [ConfigurationProperty(ConfigurationStrings.SchemaImporterExtensionsSectionName)]
  31.         public SchemaImporterExtensionsSection SchemaImporterExtensions {
  32.             get { return (SchemaImporterExtensionsSection)Sections[ConfigurationStrings.SchemaImporterExtensionsSectionName]; }
  33.         }
  34.        
  35.         [ConfigurationProperty(ConfigurationStrings.DateTimeSerializationSectionName)]
  36.         public DateTimeSerializationSection DateTimeSerialization {
  37.             get { return (DateTimeSerializationSection)Sections[ConfigurationStrings.DateTimeSerializationSectionName]; }
  38.         }
  39.        
  40.         public XmlSerializerSection XmlSerializer {
  41.             get { return (XmlSerializerSection)Sections[ConfigurationStrings.XmlSerializerSectionName]; }
  42.         }
  43.     }
  44. }

Developer Fusion