Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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 { } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FontDifferentiator.cs
- RevocationPoint.cs
- ScriptManager.cs
- ListBindingHelper.cs
- HtmlButton.cs
- BulletedListEventArgs.cs
- BooleanAnimationUsingKeyFrames.cs
- SessionParameter.cs
- Axis.cs
- HotSpot.cs
- Padding.cs
- TemplateControlParser.cs
- ApplicationSettingsBase.cs
- SystemInformation.cs
- LayoutSettings.cs
- TransformPatternIdentifiers.cs
- Base64Encoder.cs
- HtmlControl.cs
- SqlBuffer.cs
- VariantWrapper.cs
- BaseTemplateBuildProvider.cs
- Speller.cs
- PointAnimation.cs
- SrgsGrammarCompiler.cs
- typedescriptorpermissionattribute.cs
- Exceptions.cs
- BufferedWebEventProvider.cs
- LoginName.cs
- AffineTransform3D.cs
- LeafCellTreeNode.cs
- ConfigurationValidatorAttribute.cs
- MenuItem.cs
- StyleSelector.cs
- InlineCollection.cs
- NativeMethods.cs
- DynamicQueryableWrapper.cs
- CryptoStream.cs
- SchemaImporterExtensionsSection.cs
- OracleConnectionString.cs
- ValidationHelper.cs
- CryptographicAttribute.cs
- InputReportEventArgs.cs
- DataGridTextColumn.cs
- KeyValuePair.cs
- RelationshipConverter.cs
- FlowDocumentReader.cs
- XNodeValidator.cs
- PerSessionInstanceContextProvider.cs
- DesignRelationCollection.cs
- SqlFunctionAttribute.cs
- KeyboardNavigation.cs
- GenericTextProperties.cs
- PathSegmentCollection.cs
- TextViewBase.cs
- SectionXmlInfo.cs
- Application.cs
- MessagingDescriptionAttribute.cs
- DecoderFallback.cs
- ImmComposition.cs
- SqlNotificationRequest.cs
- OleDbCommand.cs
- BuilderInfo.cs
- StringFreezingAttribute.cs
- SendKeys.cs
- ObjectListCommandCollection.cs
- Message.cs
- SoapReflectionImporter.cs
- DefaultParameterValueAttribute.cs
- DetailsViewDeletedEventArgs.cs
- Int32Rect.cs
- HtmlInputReset.cs
- ValidatedControlConverter.cs
- ControlParameter.cs
- PersistenceProvider.cs
- TypographyProperties.cs
- SizeIndependentAnimationStorage.cs
- HtmlHistory.cs
- MediaContextNotificationWindow.cs
- TextProperties.cs
- FormConverter.cs
- MemoryResponseElement.cs
- RegexCaptureCollection.cs
- Registry.cs
- AttributeCollection.cs
- EnumerableWrapperWeakToStrong.cs
- ExtenderProviderService.cs
- JumpList.cs
- DocumentViewerHelper.cs
- ImmutableAssemblyCacheEntry.cs
- SweepDirectionValidation.cs
- CompletionCallbackWrapper.cs
- HashMembershipCondition.cs
- versioninfo.cs
- Visitor.cs
- SharedDp.cs
- CodeComment.cs
- RTLAwareMessageBox.cs
- GenericIdentity.cs
- PermissionToken.cs
- DesignerSerializationVisibilityAttribute.cs