Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Runtime / Serialization / SerializationAttributes.cs / 1305376 / SerializationAttributes.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: OptionallySerializableAttribute ** ** ** Purpose: Various Attributes for Serialization ** ** ============================================================*/ namespace System.Runtime.Serialization { using System; using System.Diagnostics.Contracts; 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")); Contract.EndContractBlock(); 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
- DataGridCell.cs
- GridViewItemAutomationPeer.cs
- XmlILModule.cs
- StateMachineExecutionState.cs
- CodeDirectoryCompiler.cs
- TdsEnums.cs
- DataObjectPastingEventArgs.cs
- BaseValidatorDesigner.cs
- Latin1Encoding.cs
- CharacterBufferReference.cs
- _OSSOCK.cs
- XmlSchemaComplexContent.cs
- IisTraceWebEventProvider.cs
- FontEmbeddingManager.cs
- HitTestParameters.cs
- ACE.cs
- ImageListStreamer.cs
- XmlCollation.cs
- SecurityKeyIdentifier.cs
- ChangePassword.cs
- OdbcException.cs
- HtmlTableRow.cs
- SmtpLoginAuthenticationModule.cs
- SessionEndedEventArgs.cs
- EventHandlers.cs
- DEREncoding.cs
- GridViewPageEventArgs.cs
- CheckBoxField.cs
- ExpressionParser.cs
- EndpointNameMessageFilter.cs
- SerializationEventsCache.cs
- CheckBox.cs
- SQLInt64Storage.cs
- BaseDataBoundControl.cs
- RoutedEventConverter.cs
- IndentedWriter.cs
- SafeReversePInvokeHandle.cs
- HttpResponseHeader.cs
- ContextBase.cs
- FormsAuthenticationConfiguration.cs
- FixUpCollection.cs
- DocumentAutomationPeer.cs
- FontStretch.cs
- PagesChangedEventArgs.cs
- XmlNodeChangedEventArgs.cs
- securitycriticaldata.cs
- WebPartConnectionsEventArgs.cs
- ButtonPopupAdapter.cs
- WebPartTransformer.cs
- TypeConverters.cs
- SqlCommandSet.cs
- _AcceptOverlappedAsyncResult.cs
- Subordinate.cs
- NonClientArea.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- SvcMapFileSerializer.cs
- UnsafeNativeMethods.cs
- BitmapCodecInfo.cs
- Rss20ItemFormatter.cs
- XmlSchemaSimpleTypeUnion.cs
- SkewTransform.cs
- SqlDataSourceConfigureSelectPanel.cs
- HttpRawResponse.cs
- AssemblyFilter.cs
- StyleCollectionEditor.cs
- Clipboard.cs
- DataGridViewTextBoxCell.cs
- GifBitmapDecoder.cs
- ObjectStateManagerMetadata.cs
- CompressStream.cs
- oledbconnectionstring.cs
- DeclarativeCatalogPart.cs
- FontStyleConverter.cs
- SpecularMaterial.cs
- ZipIOModeEnforcingStream.cs
- FixedFindEngine.cs
- __Filters.cs
- HTTPRemotingHandler.cs
- DataGridViewColumnConverter.cs
- HtmlFormParameterWriter.cs
- MenuScrollingVisibilityConverter.cs
- SmtpMail.cs
- designeractionlistschangedeventargs.cs
- ModelItemCollection.cs
- FilterElement.cs
- Quad.cs
- Evaluator.cs
- WebPartTransformer.cs
- NavigateUrlConverter.cs
- SmtpMail.cs
- ProxyHwnd.cs
- AbstractExpressions.cs
- TransformerInfo.cs
- SqlConnectionStringBuilder.cs
- TemplatePartAttribute.cs
- XmlSchemaElement.cs
- ConfigPathUtility.cs
- PagesSection.cs
- BasicBrowserDialog.designer.cs
- XdrBuilder.cs