﻿<?xml version="1.0" encoding="utf-8"?><Type Name="NonSerializedAttribute" FullName="System.NonSerializedAttribute"><TypeSignature Maintainer="auto" Language="C#" Value="public sealed class NonSerializedAttribute : Attribute" /><TypeSignature Language="ILAsm" Value=".class public auto ansi sealed beforefieldinit NonSerializedAttribute extends System.Attribute" /><AssemblyInfo><AssemblyName>mscorlib</AssemblyName><AssemblyPublicKey>[00 00 00 00 00 00 00 00 04 00 00 00 00 00 00 00]</AssemblyPublicKey><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ThreadSafetyStatement>Gtk# is thread aware, but not thread safe; See the &lt;link location="node:gtk-sharp/programming/threads"&gt;Gtk# Thread Programming&lt;/link&gt; for details.</ThreadSafetyStatement><Base><BaseTypeName>System.Attribute</BaseTypeName></Base><Interfaces /><Attributes><Attribute><AttributeName>System.AttributeUsage(System.AttributeTargets.Field, Inherited=false)</AttributeName></Attribute><Attribute><AttributeName>System.Runtime.InteropServices.ComVisible(true)</AttributeName></Attribute></Attributes><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>When using the <see cref="T:System.Runtime.Serialization.Formatters.Binary.BinaryFormatter" /> or <see cref="T:System.Runtime.Serialization.Formatters.Soap.SoapFormatter" /> classes to serialize an object, use the <see cref="T:System.NonSerializedAttribute" /> attribute to prevent a field from being serialized. For example, you can use this attribute to prevent the serialization of sensitive data. </para><para>The target objects for the <see cref="T:System.NonSerializedAttribute" /> attribute are public and private fields of a serializable class. By default, classes are not serializable unless they are marked with <see cref="T:System.SerializableAttribute" />. During the serialization process all the public and private fields of a class are serialized by default. Fields marked with <see cref="T:System.NonSerializedAttribute" /> are excluded during serialization. If you are using the <see cref="T:System.Xml.Serialization.XmlSerializer" /> class to serialize an object, use the <see cref="T:System.Xml.Serialization.XmlIgnoreAttribute" /> class to get the same functionality. Alternatively, implement the <see cref="T:System.Runtime.Serialization.ISerializable" /> interface to explicitly control the serialization process. Note that classes that implement <see cref="T:System.Runtime.Serialization.ISerializable" /> must still be marked with <see cref="T:System.SerializableAttribute" />. </para><para>To apply the <see cref="T:System.NonSerializedAttribute" /> class to an event, set the attribute location to field, as shown in the following C# code.</para><code>[field:NonSerializedAttribute()] 
public event ChangedEventHandler Changed;</code><para>If a field is not serialized, but it still requires a default value that must be supplied after deserialization, you can create a method that supplies the field with a value, then apply the <see cref="T:System.Runtime.Serialization.OnDeserializedAttribute" /> to the method.</para><para>For more information about using attributes, see <format type="text/html"><a href="30386922-1E00-4602-9EBF-526B271A8B87">Extending Metadata Using Attributes</a></format>. </para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Indicates that a field of a serializable class should not be serialized. This class cannot be inherited.</para></summary></Docs><Members><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public NonSerializedAttribute ();" /><MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" /><MemberType>Constructor</MemberType><AssemblyInfo><AssemblyVersion>1.0.5000.0</AssemblyVersion><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue /><Parameters /><Docs><remarks>To be added</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Initializes a new instance of the <see cref="T:System.NonSerializedAttribute" /> class.</para></summary></Docs></Member></Members></Type>