The Labs \ Source Viewer \ SSCLI \ System.Xml.Serialization \ XmlSerializerVersionAttribute

  1. //------------------------------------------------------------------------------
  2. // <copyright file="XmlSerializerVersionAttribute.cs" company="Microsoft">
  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
  17. {
  18.     using System;
  19.    
  20.    
  21.     /// <include file='doc\XmlSerializerVersionAttribute.uex' path='docs/doc[@for="XmlSerializerVersionAttribute"]/*' />
  22.     /// <devdoc>
  23.     /// <para>[To be supplied.]</para>
  24.     /// </devdoc>
  25.     [AttributeUsage(AttributeTargets.Assembly)]
  26.     public sealed class XmlSerializerVersionAttribute : System.Attribute
  27.     {
  28.         string mvid;
  29.         string serializerVersion;
  30.         string ns;
  31.         Type type;
  32.        
  33.         /// <include file='doc\XmlSerializerVersionAttribute.uex' path='docs/doc[@for="XmlSerializerVersionAttribute.XmlSerializerVersionAttribute"]/*' />
  34.         /// <devdoc>
  35.         /// <para>[To be supplied.]</para>
  36.         /// </devdoc>
  37.         public XmlSerializerVersionAttribute()
  38.         {
  39.         }
  40.        
  41.         /// <include file='doc\XmlSerializerVersionAttribute.uex' path='docs/doc[@for="XmlSerializerVersionAttribute.XmlSerializerAssemblyAttribute1"]/*' />
  42.         /// <devdoc>
  43.         /// <para>[To be supplied.]</para>
  44.         /// </devdoc>
  45.         public XmlSerializerVersionAttribute(Type type)
  46.         {
  47.             this.type = type;
  48.         }
  49.        
  50.         /// <include file='doc\XmlSerializerVersionAttribute.uex' path='docs/doc[@for="XmlSerializerVersionAttribute.ParentAssemblyId"]/*' />
  51.         /// <devdoc>
  52.         /// <para>[To be supplied.]</para>
  53.         /// </devdoc>
  54.         public string ParentAssemblyId {
  55.             get { return mvid; }
  56.             set { mvid = value; }
  57.         }
  58.        
  59.         /// <include file='doc\XmlSerializerVersionAttribute.uex' path='docs/doc[@for="XmlSerializerVersionAttribute.ParentAssemblyId"]/*' />
  60.         /// <devdoc>
  61.         /// <para>[To be supplied.]</para>
  62.         /// </devdoc>
  63.         public string Version {
  64.             get { return serializerVersion; }
  65.             set { serializerVersion = value; }
  66.         }
  67.        
  68.        
  69.         /// <include file='doc\XmlSerializerVersionAttribute.uex' path='docs/doc[@for="XmlSerializerVersionAttribute.Namespace"]/*' />
  70.         /// <devdoc>
  71.         /// <para>[To be supplied.]</para>
  72.         /// </devdoc>
  73.         public string Namespace {
  74.             get { return ns; }
  75.             set { ns = value; }
  76.         }
  77.        
  78.         /// <include file='doc\XmlSerializerVersionAttribute.uex' path='docs/doc[@for="XmlSerializerVersionAttribute.TypeName"]/*' />
  79.         /// <devdoc>
  80.         /// <para>[To be supplied.]</para>
  81.         /// </devdoc>
  82.         public Type Type {
  83.             get { return type; }
  84.             set { type = value; }
  85.         }
  86.     }
  87. }

Developer Fusion