Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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 { } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ObjectQuery.cs
- DocumentXmlWriter.cs
- SymbolType.cs
- LoadedOrUnloadedOperation.cs
- SchemaTableOptionalColumn.cs
- SoapServerMethod.cs
- DetailsViewDeletedEventArgs.cs
- OdbcDataReader.cs
- Trigger.cs
- ParserStreamGeometryContext.cs
- BatchParser.cs
- ObjectParameterCollection.cs
- ElementUtil.cs
- MdImport.cs
- ValidationErrorCollection.cs
- mongolianshape.cs
- GenericTypeParameterBuilder.cs
- WebCategoryAttribute.cs
- StringReader.cs
- GrammarBuilderPhrase.cs
- webclient.cs
- NetworkInformationException.cs
- SetterBase.cs
- LingerOption.cs
- LinkButton.cs
- SecureStringHasher.cs
- WindowHideOrCloseTracker.cs
- QilInvoke.cs
- ImmutableCollection.cs
- ObjectList.cs
- SystemThemeKey.cs
- OracleConnectionStringBuilder.cs
- HtmlShimManager.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- EntitySqlQueryBuilder.cs
- ConstructorExpr.cs
- SettingsProperty.cs
- LocationSectionRecord.cs
- WindowsPen.cs
- DesignerDataTableBase.cs
- ToolStripLabel.cs
- InvalidPrinterException.cs
- Roles.cs
- GraphicsState.cs
- Nodes.cs
- DataObjectEventArgs.cs
- FilterableAttribute.cs
- PointF.cs
- WebConfigurationFileMap.cs
- OleDbConnection.cs
- PageParser.cs
- GridViewCellAutomationPeer.cs
- CellNormalizer.cs
- WebPartTransformer.cs
- RuleDefinitions.cs
- ConnectionStringsExpressionBuilder.cs
- ScriptDescriptor.cs
- SQLSingle.cs
- TypedCompletedAsyncResult.cs
- ToolStripItemImageRenderEventArgs.cs
- BoundPropertyEntry.cs
- ExclusiveTcpTransportManager.cs
- LineProperties.cs
- CustomAttributeFormatException.cs
- SafeRightsManagementPubHandle.cs
- ProfilePropertySettings.cs
- Label.cs
- MatrixCamera.cs
- ResourceIDHelper.cs
- SafeSecurityHandles.cs
- PseudoWebRequest.cs
- ComponentEditorPage.cs
- OrthographicCamera.cs
- QueryStringParameter.cs
- MsmqIntegrationMessageProperty.cs
- AdornerLayer.cs
- CheckableControlBaseAdapter.cs
- cache.cs
- BrushValueSerializer.cs
- ObjectDataSourceStatusEventArgs.cs
- KeyedHashAlgorithm.cs
- CompilationSection.cs
- RepeatButton.cs
- ProcessHost.cs
- WebPartEditorApplyVerb.cs
- Base64Encoding.cs
- SqlUDTStorage.cs
- URI.cs
- KeyValuePairs.cs
- FontSource.cs
- ExpandSegmentCollection.cs
- ListenerPerfCounters.cs
- DelayDesigner.cs
- UnsafeNativeMethodsMilCoreApi.cs
- AssemblyContextControlItem.cs
- filewebresponse.cs
- DocumentXPathNavigator.cs
- EmbossBitmapEffect.cs
- MdiWindowListStrip.cs
- SchemaTableColumn.cs