Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / Design / Serialization / DefaultSerializationProviderAttribute.cs / 1305376 / DefaultSerializationProviderAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.ComponentModel.Design.Serialization { using System.Security.Permissions; ////// The default serialization provider attribute is placed on a serializer /// to indicate the class to use as a default provider of that type of /// serializer. To be a default serialization provider, a class must /// implement IDesignerSerilaizationProvider and have an empty /// constructor. The class itself can be internal to the assembly. /// [AttributeUsage(AttributeTargets.Class, Inherited = false)] public sealed class DefaultSerializationProviderAttribute : Attribute { private string _providerTypeName; ////// Creates a new DefaultSerializationProviderAttribute /// public DefaultSerializationProviderAttribute(Type providerType) { if (providerType == null) { throw new ArgumentNullException("providerType"); } _providerTypeName = providerType.AssemblyQualifiedName; } ////// Creates a new DefaultSerializationProviderAttribute /// public DefaultSerializationProviderAttribute(string providerTypeName) { if (providerTypeName == null) { throw new ArgumentNullException("providerTypeName"); } _providerTypeName = providerTypeName; } ////// Returns the type name for the default serialization provider. /// public string ProviderTypeName { get { return _providerTypeName; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.ComponentModel.Design.Serialization { using System.Security.Permissions; ////// The default serialization provider attribute is placed on a serializer /// to indicate the class to use as a default provider of that type of /// serializer. To be a default serialization provider, a class must /// implement IDesignerSerilaizationProvider and have an empty /// constructor. The class itself can be internal to the assembly. /// [AttributeUsage(AttributeTargets.Class, Inherited = false)] public sealed class DefaultSerializationProviderAttribute : Attribute { private string _providerTypeName; ////// Creates a new DefaultSerializationProviderAttribute /// public DefaultSerializationProviderAttribute(Type providerType) { if (providerType == null) { throw new ArgumentNullException("providerType"); } _providerTypeName = providerType.AssemblyQualifiedName; } ////// Creates a new DefaultSerializationProviderAttribute /// public DefaultSerializationProviderAttribute(string providerTypeName) { if (providerTypeName == null) { throw new ArgumentNullException("providerTypeName"); } _providerTypeName = providerTypeName; } ////// Returns the type name for the default serialization provider. /// public string ProviderTypeName { get { return _providerTypeName; } } } } // 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
- BitmapEffect.cs
- FontStyle.cs
- XmlUrlResolver.cs
- RtfToXamlReader.cs
- GuidTagList.cs
- EntityDataSourceEntitySetNameItem.cs
- Pkcs9Attribute.cs
- Vector3DAnimation.cs
- ByteStack.cs
- SchemaTableOptionalColumn.cs
- ActivityCodeDomSerializer.cs
- SwitchLevelAttribute.cs
- UnsafeNativeMethods.cs
- XmlCompatibilityReader.cs
- KnowledgeBase.cs
- CryptoApi.cs
- BulletChrome.cs
- WebPartZoneBaseDesigner.cs
- EntityKey.cs
- SpoolingTaskBase.cs
- CodeComment.cs
- TextRangeAdaptor.cs
- XmlNodeChangedEventArgs.cs
- ISFClipboardData.cs
- ConstructorBuilder.cs
- SymbolType.cs
- WebPartEditorApplyVerb.cs
- ExtendedPropertiesHandler.cs
- ResourceBinder.cs
- InstanceKeyCollisionException.cs
- ReverseInheritProperty.cs
- TextEditorCharacters.cs
- SrgsSemanticInterpretationTag.cs
- XPathMultyIterator.cs
- InternalSafeNativeMethods.cs
- ApplicationHost.cs
- XmlReflectionImporter.cs
- ApplicationInfo.cs
- LayoutUtils.cs
- DrawListViewItemEventArgs.cs
- NumberFunctions.cs
- UserValidatedEventArgs.cs
- OleDbException.cs
- SqlNodeAnnotation.cs
- BitmapEncoder.cs
- FontSourceCollection.cs
- CodeIdentifiers.cs
- SettingsPropertyCollection.cs
- PreviewPrintController.cs
- PluggableProtocol.cs
- EntityKey.cs
- TrackBarRenderer.cs
- SecureStringHasher.cs
- C14NUtil.cs
- HitTestDrawingContextWalker.cs
- SplitContainer.cs
- DataGrid.cs
- ReadWriteObjectLock.cs
- XmlNodeList.cs
- NextPreviousPagerField.cs
- NodeCounter.cs
- ErrorWebPart.cs
- SmiContext.cs
- COMException.cs
- Int16AnimationUsingKeyFrames.cs
- PropertiesTab.cs
- XsdBuildProvider.cs
- EntityDataSourceDataSelection.cs
- ExpressionBindings.cs
- StackOverflowException.cs
- SqlLiftWhereClauses.cs
- InvalidOperationException.cs
- MasterPageCodeDomTreeGenerator.cs
- TextDecorationLocationValidation.cs
- SessionEndedEventArgs.cs
- MimeBasePart.cs
- FontStretch.cs
- ProbeDuplexCD1AsyncResult.cs
- EdmFunction.cs
- SmtpNegotiateAuthenticationModule.cs
- DataGridPageChangedEventArgs.cs
- ISCIIEncoding.cs
- ConnectionManagementElementCollection.cs
- keycontainerpermission.cs
- TypedReference.cs
- ListParagraph.cs
- BrowserDefinitionCollection.cs
- CharacterBuffer.cs
- PersonalizableTypeEntry.cs
- AsyncContentLoadedEventArgs.cs
- NavigationCommands.cs
- ScrollData.cs
- FileRecordSequenceHelper.cs
- ActiveXSite.cs
- SupportsEventValidationAttribute.cs
- XmlProcessingInstruction.cs
- AnnotationResource.cs
- ISAPIRuntime.cs
- ExceptionWrapper.cs
- DataSourceCollectionBase.cs