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
- _ConnectionGroup.cs
- FormsIdentity.cs
- ConsoleTraceListener.cs
- VariantWrapper.cs
- RewritingPass.cs
- Line.cs
- DbCommandTree.cs
- PointConverter.cs
- BeginSelectCardRequest.cs
- NamedPipeAppDomainProtocolHandler.cs
- VectorValueSerializer.cs
- ImageDrawing.cs
- HttpSysSettings.cs
- HtmlInputSubmit.cs
- ItemMap.cs
- UnsettableComboBox.cs
- ModelPerspective.cs
- BrowserTree.cs
- Utils.cs
- CodeGroup.cs
- IdentityHolder.cs
- CaseStatement.cs
- InternalResources.cs
- JobInputBins.cs
- GlyphRunDrawing.cs
- DataSourceHelper.cs
- ContractTypeNameElement.cs
- StylusPointPropertyId.cs
- DynamicPropertyHolder.cs
- DataGridPageChangedEventArgs.cs
- ReadOnlyNameValueCollection.cs
- UInt64Storage.cs
- RuntimeConfig.cs
- RectAnimationBase.cs
- CreateUserWizard.cs
- SectionXmlInfo.cs
- ByteKeyFrameCollection.cs
- IndexOutOfRangeException.cs
- QilPatternFactory.cs
- FunctionDetailsReader.cs
- CryptoStream.cs
- SqlStream.cs
- UnicodeEncoding.cs
- Condition.cs
- KeyFrames.cs
- UrlPath.cs
- Thread.cs
- BuildManagerHost.cs
- SerializableAttribute.cs
- RoutingEndpointTrait.cs
- RectangleF.cs
- TreeNodeConverter.cs
- DataObjectPastingEventArgs.cs
- Rule.cs
- ImageCodecInfoPrivate.cs
- ObjectDataSourceChooseMethodsPanel.cs
- CompiledQuery.cs
- SqlDataSourceFilteringEventArgs.cs
- SqlTopReducer.cs
- SqlFactory.cs
- LayoutEvent.cs
- NotifyIcon.cs
- dbdatarecord.cs
- ListMarkerLine.cs
- MissingMemberException.cs
- BaseInfoTable.cs
- Image.cs
- SerialPinChanges.cs
- ByteStreamGeometryContext.cs
- CancellationToken.cs
- AsyncOperationContext.cs
- DecoderExceptionFallback.cs
- TypeElementCollection.cs
- ChannelBinding.cs
- QilXmlReader.cs
- XmlSiteMapProvider.cs
- FileLoadException.cs
- ManualWorkflowSchedulerService.cs
- ConfigXmlElement.cs
- SelfSignedCertificate.cs
- XmlExceptionHelper.cs
- Matrix.cs
- _NtlmClient.cs
- NullReferenceException.cs
- LazyTextWriterCreator.cs
- HtmlTextArea.cs
- DispatchChannelSink.cs
- ObjectDisposedException.cs
- Floater.cs
- WebHttpDispatchOperationSelector.cs
- AttributeQuery.cs
- CollectionBuilder.cs
- WebPartEditorCancelVerb.cs
- ImageMapEventArgs.cs
- ProfessionalColors.cs
- baseaxisquery.cs
- CodeMemberField.cs
- RelationshipConstraintValidator.cs
- AddInDeploymentState.cs
- PartialTrustVisibleAssembly.cs