Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / clr / src / BCL / System / Runtime / Serialization / SerializationAttributes.cs / 1 / SerializationAttributes.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: OptionallySerializableAttribute ** ** ** Purpose: Various Attributes for Serialization ** ** ============================================================*/ namespace System.Runtime.Serialization { using System.Reflection; [AttributeUsage(AttributeTargets.Field, Inherited=false)] [System.Runtime.InteropServices.ComVisible(true)] public sealed class OptionalFieldAttribute : Attribute { int versionAdded = 1; public OptionalFieldAttribute() { } public int VersionAdded { get { return this.versionAdded; } set { if (value < 1) throw new ArgumentException(Environment.GetResourceString("Serialization_OptionalFieldVersionValue")); this.versionAdded = value; } } } [AttributeUsage(AttributeTargets.Method, Inherited=false)] [System.Runtime.InteropServices.ComVisible(true)] public sealed class OnSerializingAttribute : Attribute { } [AttributeUsage(AttributeTargets.Method, Inherited=false)] [System.Runtime.InteropServices.ComVisible(true)] public sealed class OnSerializedAttribute : Attribute { } [AttributeUsage(AttributeTargets.Method, Inherited=false)] [System.Runtime.InteropServices.ComVisible(true)] public sealed class OnDeserializingAttribute : Attribute { } [AttributeUsage(AttributeTargets.Method, Inherited=false)] [System.Runtime.InteropServices.ComVisible(true)] public sealed class OnDeserializedAttribute : Attribute { } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: OptionallySerializableAttribute ** ** ** Purpose: Various Attributes for Serialization ** ** ============================================================*/ namespace System.Runtime.Serialization { using System.Reflection; [AttributeUsage(AttributeTargets.Field, Inherited=false)] [System.Runtime.InteropServices.ComVisible(true)] public sealed class OptionalFieldAttribute : Attribute { int versionAdded = 1; public OptionalFieldAttribute() { } public int VersionAdded { get { return this.versionAdded; } set { if (value < 1) throw new ArgumentException(Environment.GetResourceString("Serialization_OptionalFieldVersionValue")); this.versionAdded = value; } } } [AttributeUsage(AttributeTargets.Method, Inherited=false)] [System.Runtime.InteropServices.ComVisible(true)] public sealed class OnSerializingAttribute : Attribute { } [AttributeUsage(AttributeTargets.Method, Inherited=false)] [System.Runtime.InteropServices.ComVisible(true)] public sealed class OnSerializedAttribute : Attribute { } [AttributeUsage(AttributeTargets.Method, Inherited=false)] [System.Runtime.InteropServices.ComVisible(true)] public sealed class OnDeserializingAttribute : Attribute { } [AttributeUsage(AttributeTargets.Method, Inherited=false)] [System.Runtime.InteropServices.ComVisible(true)] public sealed class OnDeserializedAttribute : Attribute { } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StaticSiteMapProvider.cs
- ListDictionary.cs
- EnvelopedSignatureTransform.cs
- ObjectView.cs
- ExpressionPrefixAttribute.cs
- FixedLineResult.cs
- TemplatePropertyEntry.cs
- ListViewCommandEventArgs.cs
- webclient.cs
- OdbcConnectionString.cs
- ScriptRegistrationManager.cs
- GeometryHitTestParameters.cs
- __Filters.cs
- DataGridItemEventArgs.cs
- ProcessInfo.cs
- SiteMapDataSource.cs
- QuaternionRotation3D.cs
- NavigationWindowAutomationPeer.cs
- cookieexception.cs
- ColorAnimationUsingKeyFrames.cs
- NamespaceQuery.cs
- DesignOnlyAttribute.cs
- HostingEnvironment.cs
- MenuItem.cs
- ObjectReaderCompiler.cs
- StoreConnection.cs
- KeyValuePairs.cs
- SyntaxCheck.cs
- CommentEmitter.cs
- StrokeSerializer.cs
- LinqDataSource.cs
- CapabilitiesPattern.cs
- AnnotationObservableCollection.cs
- BatchWriter.cs
- ListenerSingletonConnectionReader.cs
- DynamicScriptObject.cs
- CompiledRegexRunnerFactory.cs
- wgx_sdk_version.cs
- RC2CryptoServiceProvider.cs
- FilteredDataSetHelper.cs
- ProxyHelper.cs
- SamlSecurityTokenAuthenticator.cs
- PolyQuadraticBezierSegment.cs
- RestClientProxyHandler.cs
- EntityClassGenerator.cs
- NativeMethodsOther.cs
- StringHelper.cs
- ConfigurationConverterBase.cs
- RequiredFieldValidator.cs
- DefaultPrintController.cs
- ConfigurationManagerHelper.cs
- LogReserveAndAppendState.cs
- ToolStripOverflow.cs
- CardSpaceException.cs
- GlyphTypeface.cs
- TableItemPattern.cs
- BackgroundWorker.cs
- ConnectionManagementSection.cs
- DSASignatureFormatter.cs
- basevalidator.cs
- FontWeightConverter.cs
- PhoneCallDesigner.cs
- ellipse.cs
- DecoderNLS.cs
- SerializationFieldInfo.cs
- BitmapEffectState.cs
- listitem.cs
- BamlMapTable.cs
- SmtpNegotiateAuthenticationModule.cs
- MediaScriptCommandRoutedEventArgs.cs
- ObjectStateManagerMetadata.cs
- DefaultShape.cs
- SettingsBase.cs
- PageCatalogPart.cs
- NullRuntimeConfig.cs
- SchemaInfo.cs
- SingleAnimationBase.cs
- ApplicationDirectory.cs
- DateTimeValueSerializer.cs
- OracleDataReader.cs
- ArrayWithOffset.cs
- InputScope.cs
- DBDataPermission.cs
- BoundColumn.cs
- DataGridViewAdvancedBorderStyle.cs
- RegexCaptureCollection.cs
- IconHelper.cs
- LayoutEditorPart.cs
- XmlSchemaGroupRef.cs
- WhitespaceSignificantCollectionAttribute.cs
- GAC.cs
- storepermissionattribute.cs
- ToolStripSplitButton.cs
- System.Data_BID.cs
- EntityDataSourceSelectedEventArgs.cs
- Int64KeyFrameCollection.cs
- WebPartCollection.cs
- IntMinMaxAggregationOperator.cs
- MasterPage.cs
- SerTrace.cs