Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- SafeTokenHandle.cs
- StatusBar.cs
- BitmapEffectGroup.cs
- DictionaryEntry.cs
- XPathSingletonIterator.cs
- NonBatchDirectoryCompiler.cs
- ComponentCollection.cs
- JoinQueryOperator.cs
- SqlDelegatedTransaction.cs
- CurrentChangedEventManager.cs
- TextServicesDisplayAttributePropertyRanges.cs
- XmlSerializer.cs
- assemblycache.cs
- WinEventWrap.cs
- securestring.cs
- PageHandlerFactory.cs
- OleDbError.cs
- PrePostDescendentsWalker.cs
- Schema.cs
- FileSystemWatcher.cs
- SafeFindHandle.cs
- ContentElement.cs
- BasicHttpSecurity.cs
- ImmutableClientRuntime.cs
- RouteValueExpressionBuilder.cs
- SendAgentStatusRequest.cs
- ParseHttpDate.cs
- AssemblyName.cs
- HelpPage.cs
- CounterCreationDataCollection.cs
- BuilderInfo.cs
- ServiceMoniker.cs
- WinFormsComponentEditor.cs
- ExceptionUtil.cs
- DynamicPropertyReader.cs
- SubpageParagraph.cs
- TransportContext.cs
- SiteIdentityPermission.cs
- ColumnHeaderConverter.cs
- DependencyPropertyAttribute.cs
- EmptyEnumerator.cs
- WorkItem.cs
- TransformDescriptor.cs
- ParameterModifier.cs
- ApplicationActivator.cs
- LoginName.cs
- RoutedEventValueSerializer.cs
- ArgumentValueSerializer.cs
- DataGridViewCellCancelEventArgs.cs
- InfiniteIntConverter.cs
- Operators.cs
- Parameter.cs
- StyleHelper.cs
- ConfigurationFileMap.cs
- ListViewSelectEventArgs.cs
- WebPartZoneBase.cs
- cookieexception.cs
- BridgeDataReader.cs
- AliasGenerator.cs
- SelectionRange.cs
- TypedElement.cs
- ScriptResourceAttribute.cs
- TypeForwardedToAttribute.cs
- InputLangChangeRequestEvent.cs
- Rect3DValueSerializer.cs
- PolyQuadraticBezierSegment.cs
- CounterCreationData.cs
- ImageClickEventArgs.cs
- DefaultMemberAttribute.cs
- AppSecurityManager.cs
- Visual3DCollection.cs
- EllipticalNodeOperations.cs
- DynamicILGenerator.cs
- ZoomingMessageFilter.cs
- DataKey.cs
- DbParameterCollectionHelper.cs
- UriTemplateLiteralQueryValue.cs
- DummyDataSource.cs
- listviewsubitemcollectioneditor.cs
- PipelineModuleStepContainer.cs
- ExpressionLexer.cs
- ContentHostHelper.cs
- DivideByZeroException.cs
- NGCUIElementCollectionSerializerAsync.cs
- ConnectionManagementElement.cs
- ThemeDirectoryCompiler.cs
- GridViewRowEventArgs.cs
- AttachedPropertyMethodSelector.cs
- AdapterUtil.cs
- BamlMapTable.cs
- DataGridViewRowPostPaintEventArgs.cs
- ExpressionTable.cs
- ButtonFieldBase.cs
- ResourceLoader.cs
- Type.cs
- _NegotiateClient.cs
- GlobalDataBindingHandler.cs
- Underline.cs
- WorkflowServiceHost.cs
- HttpCapabilitiesBase.cs