Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- TextRunTypographyProperties.cs
- EdmItemCollection.OcAssemblyCache.cs
- DocumentEventArgs.cs
- ColumnPropertiesGroup.cs
- HttpClientCertificate.cs
- SqlFacetAttribute.cs
- RijndaelManagedTransform.cs
- CodeDirectiveCollection.cs
- ExpandedWrapper.cs
- XPathMessageContext.cs
- ContainsRowNumberChecker.cs
- EntityCollection.cs
- ConnectorDragDropGlyph.cs
- WebEventTraceProvider.cs
- TextStore.cs
- WindowsListBox.cs
- ResourceReferenceKeyNotFoundException.cs
- ImageCodecInfoPrivate.cs
- SqlDataSourceCommandEventArgs.cs
- ToolStripCustomTypeDescriptor.cs
- WriterOutput.cs
- Visual.cs
- XPathDocumentIterator.cs
- DynamicILGenerator.cs
- CompilationUnit.cs
- ScrollEventArgs.cs
- CodeParameterDeclarationExpressionCollection.cs
- _Connection.cs
- ToolBarOverflowPanel.cs
- CounterCreationData.cs
- XPathException.cs
- InternalResources.cs
- ResourceManager.cs
- ServiceDescriptionSerializer.cs
- TraceInternal.cs
- CheckPair.cs
- PersistChildrenAttribute.cs
- CloseSequenceResponse.cs
- QilPatternVisitor.cs
- XmlName.cs
- MouseGestureValueSerializer.cs
- TargetParameterCountException.cs
- X509CertificateTrustedIssuerElementCollection.cs
- StrokeNode.cs
- CanonicalXml.cs
- XmlMemberMapping.cs
- List.cs
- SiteMapSection.cs
- CompiledELinqQueryState.cs
- DataGridViewRow.cs
- SQLRoleProvider.cs
- TypeBuilderInstantiation.cs
- CompileLiteralTextParser.cs
- TextServicesContext.cs
- BackStopAuthenticationModule.cs
- SqlNodeTypeOperators.cs
- ValidationResult.cs
- DataSourceUtil.cs
- TagNameToTypeMapper.cs
- MdiWindowListItemConverter.cs
- Baml6ConstructorInfo.cs
- Underline.cs
- SiteIdentityPermission.cs
- WindowsSysHeader.cs
- AlgoModule.cs
- EntityCommandCompilationException.cs
- HandlerBase.cs
- SafePEFileHandle.cs
- WizardPanel.cs
- DSASignatureFormatter.cs
- WindowsRichEditRange.cs
- LocalizableResourceBuilder.cs
- MenuItemBindingCollection.cs
- ConfigurationHandlersInstallComponent.cs
- ConfigurationManagerHelperFactory.cs
- SizeAnimation.cs
- ProxyGenerationError.cs
- FileNotFoundException.cs
- CheckBox.cs
- XmlConverter.cs
- PropertiesTab.cs
- DataGridViewColumnDesigner.cs
- DataControlFieldHeaderCell.cs
- TimeZone.cs
- HwndTarget.cs
- DatagramAdapter.cs
- MethodToken.cs
- VersionUtil.cs
- ReadOnlyObservableCollection.cs
- Site.cs
- SqlBuilder.cs
- SeekStoryboard.cs
- PathGeometry.cs
- MimeObjectFactory.cs
- ControlBindingsCollection.cs
- MailHeaderInfo.cs
- HtmlShimManager.cs
- AssociationTypeEmitter.cs
- JsonXmlDataContract.cs
- UIntPtr.cs