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
- TimelineGroup.cs
- DragDeltaEventArgs.cs
- XmlArrayItemAttribute.cs
- XDeferredAxisSource.cs
- BitmapEffectvisualstate.cs
- SendActivityEventArgs.cs
- SQLCharsStorage.cs
- SecondaryIndex.cs
- TextTreeInsertUndoUnit.cs
- ShaperBuffers.cs
- WsdlBuildProvider.cs
- WindowsListViewItemCheckBox.cs
- Transform.cs
- MessagePropertyFilter.cs
- ConfigXmlAttribute.cs
- MultiSelectRootGridEntry.cs
- XmlSchemaInfo.cs
- Attributes.cs
- RequestCachingSection.cs
- RelationshipConstraintValidator.cs
- TypedTableGenerator.cs
- DecimalStorage.cs
- DataServiceProcessingPipeline.cs
- XmlWrappingReader.cs
- Clause.cs
- WorkflowRuntime.cs
- UnmanagedMemoryStream.cs
- ListViewAutomationPeer.cs
- TextServicesHost.cs
- ObsoleteAttribute.cs
- SqlServices.cs
- ContractHandle.cs
- DependencyPropertyKind.cs
- ZipIOExtraField.cs
- AdvancedBindingPropertyDescriptor.cs
- EdmFunctionAttribute.cs
- SettingsAttributes.cs
- ProtocolElementCollection.cs
- SoapAttributeOverrides.cs
- DataRecordInternal.cs
- ClientTarget.cs
- FaultContractInfo.cs
- ArrayList.cs
- HorizontalAlignConverter.cs
- ContextStack.cs
- FormatVersion.cs
- MsmqIntegrationInputChannel.cs
- DbConnectionClosed.cs
- ParseNumbers.cs
- ApplicationProxyInternal.cs
- StylusPointDescription.cs
- Viewport3DVisual.cs
- CodeSnippetStatement.cs
- DefaultParameterValueAttribute.cs
- LinqDataSourceInsertEventArgs.cs
- ClientScriptManagerWrapper.cs
- TdsParserStaticMethods.cs
- RemotingServices.cs
- QilTypeChecker.cs
- ToolStripDesignerUtils.cs
- UnsafeCollabNativeMethods.cs
- MouseActionConverter.cs
- ValueUtilsSmi.cs
- ListBoxChrome.cs
- followingquery.cs
- ScrollChangedEventArgs.cs
- Animatable.cs
- BmpBitmapEncoder.cs
- EncoderParameter.cs
- DynamicMethod.cs
- SharedUtils.cs
- LayoutEvent.cs
- ExtensionSimplifierMarkupObject.cs
- PrimitiveType.cs
- Point4DValueSerializer.cs
- MethodBuilder.cs
- SqlConnectionString.cs
- WmlMobileTextWriter.cs
- SystemResources.cs
- SqlComparer.cs
- SecuritySessionServerSettings.cs
- StatusBarDesigner.cs
- Accessors.cs
- ProfileService.cs
- Proxy.cs
- ConfigurationPermission.cs
- StreamGeometry.cs
- ParseChildrenAsPropertiesAttribute.cs
- RoleService.cs
- DragDrop.cs
- X509AudioLogo.cs
- InternalConfigEventArgs.cs
- MethodRental.cs
- ReadOnlyDictionary.cs
- XmlLoader.cs
- Table.cs
- SecurityDescriptor.cs
- CultureTableRecord.cs
- LongMinMaxAggregationOperator.cs
- SqlUdtInfo.cs