Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SessionStateContainer.cs
- GridViewCommandEventArgs.cs
- XmlnsCompatibleWithAttribute.cs
- PathSegmentCollection.cs
- Compilation.cs
- HttpContext.cs
- Point3DCollectionConverter.cs
- Transactions.cs
- CustomErrorsSectionWrapper.cs
- ProfileManager.cs
- ObjectComplexPropertyMapping.cs
- LambdaCompiler.Logical.cs
- SqlProviderUtilities.cs
- TextEmbeddedObject.cs
- InvokeProviderWrapper.cs
- OleDbMetaDataFactory.cs
- FontFamily.cs
- FunctionMappingTranslator.cs
- DataColumnPropertyDescriptor.cs
- TabItemWrapperAutomationPeer.cs
- XmlElementList.cs
- GroupBox.cs
- SignedPkcs7.cs
- EqualityComparer.cs
- ReferenceList.cs
- CollectionChangeEventArgs.cs
- DesignTimeParseData.cs
- TypeDescriptionProviderAttribute.cs
- CompleteWizardStep.cs
- DLinqColumnProvider.cs
- LinkedDataMemberFieldEditor.cs
- AsymmetricSignatureDeformatter.cs
- DataGridPreparingCellForEditEventArgs.cs
- FontStyleConverter.cs
- DesignerToolboxInfo.cs
- X509Utils.cs
- HtmlPhoneCallAdapter.cs
- XmlSchemaAttributeGroupRef.cs
- LinkArea.cs
- InternalSendMessage.cs
- Decorator.cs
- DbDeleteCommandTree.cs
- SignatureDescription.cs
- MarkedHighlightComponent.cs
- WriteTimeStream.cs
- HttpWebRequest.cs
- CodeMemberEvent.cs
- DiscoveryUtility.cs
- DesignerLoader.cs
- ParallelTimeline.cs
- VoiceInfo.cs
- DrawingServices.cs
- SessionPageStateSection.cs
- LinqDataSourceContextEventArgs.cs
- ChtmlImageAdapter.cs
- EarlyBoundInfo.cs
- PathGeometry.cs
- SmtpException.cs
- WindowsAuthenticationModule.cs
- WrapperSecurityCommunicationObject.cs
- Misc.cs
- GridViewEditEventArgs.cs
- ListBindingConverter.cs
- WebPartTracker.cs
- CodePageEncoding.cs
- ComplexTypeEmitter.cs
- Merger.cs
- RemoteWebConfigurationHostServer.cs
- MetafileHeader.cs
- WindowsToolbarAsMenu.cs
- PieceDirectory.cs
- AsyncPostBackTrigger.cs
- IISMapPath.cs
- DateTime.cs
- HostingEnvironmentException.cs
- BitmapEffectGeneralTransform.cs
- QuadraticBezierSegment.cs
- SchemaTableOptionalColumn.cs
- X509CertificateChain.cs
- XmlTextReaderImplHelpers.cs
- SyndicationElementExtension.cs
- ConsoleCancelEventArgs.cs
- XpsLiterals.cs
- DataGridViewTextBoxEditingControl.cs
- SymbolTable.cs
- CancellationTokenRegistration.cs
- StrokeCollection.cs
- MDIClient.cs
- PtsCache.cs
- InternalSafeNativeMethods.cs
- Registry.cs
- HttpBrowserCapabilitiesWrapper.cs
- StreamGeometry.cs
- PropertyChangingEventArgs.cs
- WebPartsPersonalization.cs
- CheckBoxList.cs
- Subtree.cs
- ChannelListenerBase.cs
- EntityWithKeyStrategy.cs
- SchemaImporterExtensionElement.cs