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
- ToolStripRenderer.cs
- Empty.cs
- ObjectItemCollection.cs
- AssemblyAssociatedContentFileAttribute.cs
- StrongNamePublicKeyBlob.cs
- EventLogInformation.cs
- ObjectListShowCommandsEventArgs.cs
- AncillaryOps.cs
- GenericEnumerator.cs
- ADConnectionHelper.cs
- RequestTimeoutManager.cs
- ObjectViewFactory.cs
- ExternalCalls.cs
- ButtonFlatAdapter.cs
- BindingList.cs
- DataTableClearEvent.cs
- XamlLoadErrorInfo.cs
- XPathQilFactory.cs
- OdbcReferenceCollection.cs
- RawUIStateInputReport.cs
- DiscardableAttribute.cs
- CompositeScriptReference.cs
- MTConfigUtil.cs
- OciHandle.cs
- BuildProviderAppliesToAttribute.cs
- RelationshipConverter.cs
- _SafeNetHandles.cs
- ButtonRenderer.cs
- WebRequestModulesSection.cs
- ImageListStreamer.cs
- counter.cs
- Storyboard.cs
- ControllableStoryboardAction.cs
- WaitHandle.cs
- HttpModuleActionCollection.cs
- GenericWebPart.cs
- HttpCacheVaryByContentEncodings.cs
- CompilerGlobalScopeAttribute.cs
- ExpressionEditorAttribute.cs
- Int32.cs
- XPathDocumentBuilder.cs
- PageThemeBuildProvider.cs
- AutoResetEvent.cs
- BamlBinaryWriter.cs
- ToolCreatedEventArgs.cs
- AutoSizeComboBox.cs
- ProcessModelInfo.cs
- Throw.cs
- XmlDocument.cs
- RelOps.cs
- CultureTableRecord.cs
- BinaryParser.cs
- WebPartDisplayModeEventArgs.cs
- FunctionImportMapping.ReturnTypeRenameMapping.cs
- CounterSetInstance.cs
- TextAnchor.cs
- PropVariant.cs
- WindowsFormsHelpers.cs
- ObjectViewListener.cs
- PageAsyncTask.cs
- CryptoApi.cs
- CompareInfo.cs
- WebBrowser.cs
- DoubleConverter.cs
- CurrentChangedEventManager.cs
- InternalConfigSettingsFactory.cs
- QueryCacheEntry.cs
- ResourcePermissionBase.cs
- TextTreeDeleteContentUndoUnit.cs
- Utils.cs
- DependencyObjectPropertyDescriptor.cs
- AtomMaterializer.cs
- DbConnectionStringBuilder.cs
- ServiceTimeoutsBehavior.cs
- GridItemProviderWrapper.cs
- TransactionFlowElement.cs
- CodeVariableReferenceExpression.cs
- FunctionNode.cs
- TextEditorCopyPaste.cs
- FontFamilyValueSerializer.cs
- Journaling.cs
- KeyValuePairs.cs
- SmtpCommands.cs
- ExpressionBuilder.cs
- BuildManager.cs
- CommentEmitter.cs
- ViewPort3D.cs
- IndentedTextWriter.cs
- BuilderPropertyEntry.cs
- TdsEnums.cs
- EditingCoordinator.cs
- FaultDesigner.cs
- WebPartConnectionsCancelVerb.cs
- DictionarySectionHandler.cs
- TypeGeneratedEventArgs.cs
- AuthStoreRoleProvider.cs
- TemplateBuilder.cs
- TableRowCollection.cs
- EventLogger.cs
- CharStorage.cs