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
- AttributedMetaModel.cs
- xdrvalidator.cs
- XamlUtilities.cs
- OdbcParameter.cs
- ImageMap.cs
- ClientProxyGenerator.cs
- DBPropSet.cs
- XmlReader.cs
- ComponentResourceKey.cs
- EmptyEnumerable.cs
- SqlClientWrapperSmiStream.cs
- FilterException.cs
- TableChangeProcessor.cs
- SamlDelegatingWriter.cs
- EntryWrittenEventArgs.cs
- ISAPIRuntime.cs
- XmlUTF8TextReader.cs
- SelectionManager.cs
- _StreamFramer.cs
- SamlSecurityToken.cs
- Pair.cs
- WindowsSlider.cs
- BindableAttribute.cs
- AsymmetricSignatureFormatter.cs
- DiscoveryInnerClientAdhoc11.cs
- SamlAttribute.cs
- ConnectionConsumerAttribute.cs
- EncodedStreamFactory.cs
- PersonalizationEntry.cs
- SymbolType.cs
- HelpInfo.cs
- CDSsyncETWBCLProvider.cs
- WebPartEditorOkVerb.cs
- UxThemeWrapper.cs
- DataServiceRequest.cs
- ADRoleFactoryConfiguration.cs
- Win32.cs
- NotConverter.cs
- AppDomainProtocolHandler.cs
- ItemPager.cs
- Transform.cs
- DiscoveryVersion.cs
- XmlSequenceWriter.cs
- XamlVector3DCollectionSerializer.cs
- HostDesigntimeLicenseContext.cs
- SHA512.cs
- StyleXamlTreeBuilder.cs
- StringResourceManager.cs
- HtmlUtf8RawTextWriter.cs
- XmlObjectSerializer.cs
- InternalException.cs
- BooleanToVisibilityConverter.cs
- ContextMarshalException.cs
- PrintDialog.cs
- FlowDecisionLabelFeature.cs
- ControlUtil.cs
- GeneralTransformCollection.cs
- HwndHostAutomationPeer.cs
- BatchParser.cs
- HTMLTagNameToTypeMapper.cs
- QilIterator.cs
- MessageFormatterConverter.cs
- NativeMethodsCLR.cs
- UIElement.cs
- PropertyPathWorker.cs
- ObjectSet.cs
- ResourceExpression.cs
- TdsParserSafeHandles.cs
- FormViewUpdatedEventArgs.cs
- Viewport3DAutomationPeer.cs
- TeredoHelper.cs
- NonBatchDirectoryCompiler.cs
- ExpressionList.cs
- DocumentPageTextView.cs
- WebPartMovingEventArgs.cs
- GridViewRowEventArgs.cs
- ResourceDescriptionAttribute.cs
- VirtualPath.cs
- XmlReader.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- InvokeMemberBinder.cs
- FileLevelControlBuilderAttribute.cs
- XmlSchemaExternal.cs
- Update.cs
- SchemaElementDecl.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- AdornerHitTestResult.cs
- ApplicationServiceHelper.cs
- DataGridViewSortCompareEventArgs.cs
- ExternalException.cs
- DataSvcMapFileSerializer.cs
- CommonRemoteMemoryBlock.cs
- FormattedText.cs
- RangeValidator.cs
- IPAddress.cs
- UnionCodeGroup.cs
- BoundPropertyEntry.cs
- Avt.cs
- PenContexts.cs
- Version.cs