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
- BCryptNative.cs
- ComMethodElementCollection.cs
- DoWorkEventArgs.cs
- ReadWriteObjectLock.cs
- EntityDesignPluralizationHandler.cs
- XamlWrapperReaders.cs
- HttpWriter.cs
- HttpCapabilitiesBase.cs
- Permission.cs
- DataServiceHostWrapper.cs
- StoreAnnotationsMap.cs
- Transform.cs
- LinearGradientBrush.cs
- AuthenticateEventArgs.cs
- TextRenderer.cs
- _IPv4Address.cs
- BitHelper.cs
- MediaPlayerState.cs
- Point4DConverter.cs
- TrustLevel.cs
- WebSysDisplayNameAttribute.cs
- DataGridViewBindingCompleteEventArgs.cs
- AdapterDictionary.cs
- CalendarSelectionChangedEventArgs.cs
- BitmapEffectInputData.cs
- UntypedNullExpression.cs
- DrawListViewColumnHeaderEventArgs.cs
- DataGridSortCommandEventArgs.cs
- ListViewInsertedEventArgs.cs
- CodePropertyReferenceExpression.cs
- DataListItemEventArgs.cs
- SwitchElementsCollection.cs
- FormViewCommandEventArgs.cs
- CursorConverter.cs
- SessionStateContainer.cs
- DesignTimeXamlWriter.cs
- ListDataHelper.cs
- SiteMapNodeCollection.cs
- ListViewGroupCollectionEditor.cs
- StylusPointPropertyInfo.cs
- ProfileInfo.cs
- NonBatchDirectoryCompiler.cs
- ObjectIDGenerator.cs
- DbUpdateCommandTree.cs
- XmlWriterDelegator.cs
- DataGridSortCommandEventArgs.cs
- TextViewSelectionProcessor.cs
- TargetPerspective.cs
- XmlEncoding.cs
- ObjectManager.cs
- AdornerPresentationContext.cs
- DataGridLinkButton.cs
- CharEntityEncoderFallback.cs
- FilteredXmlReader.cs
- ConnectionPoint.cs
- GridItemProviderWrapper.cs
- ConsumerConnectionPointCollection.cs
- RequiredArgumentAttribute.cs
- COAUTHIDENTITY.cs
- COM2EnumConverter.cs
- SafeNativeMethods.cs
- ProviderCommandInfoUtils.cs
- TrackingValidationObjectDictionary.cs
- CompModSwitches.cs
- DeploymentExceptionMapper.cs
- OptimizedTemplateContent.cs
- GatewayDefinition.cs
- CallbackHandler.cs
- ManagedIStream.cs
- RuleElement.cs
- XPathDocument.cs
- PhysicalOps.cs
- ThreadPool.cs
- StorageModelBuildProvider.cs
- TypeConverterAttribute.cs
- Hash.cs
- CollectionMarkupSerializer.cs
- PolyBezierSegment.cs
- SubstitutionResponseElement.cs
- QilStrConcatenator.cs
- PageClientProxyGenerator.cs
- DeferredElementTreeState.cs
- XmlProcessingInstruction.cs
- TableItemPattern.cs
- ImportCatalogPart.cs
- IListConverters.cs
- EntityDesignerUtils.cs
- NonClientArea.cs
- DashStyle.cs
- AccessViolationException.cs
- SerializationFieldInfo.cs
- ECDsa.cs
- CompareInfo.cs
- Table.cs
- ContractListAdapter.cs
- StreamInfo.cs
- WCFServiceClientProxyGenerator.cs
- ConfigXmlText.cs
- ServiceContractGenerationContext.cs
- PatternMatcher.cs