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
- FunctionNode.cs
- WindowsListViewItemStartMenu.cs
- RequestCacheManager.cs
- XmlSchemaSet.cs
- UnSafeCharBuffer.cs
- TextDpi.cs
- Function.cs
- Opcode.cs
- TextDataBindingHandler.cs
- MouseButton.cs
- AmbientEnvironment.cs
- formatter.cs
- TypefaceCollection.cs
- UnSafeCharBuffer.cs
- PersonalizationStateInfoCollection.cs
- ManagementBaseObject.cs
- CustomLineCap.cs
- WindowsClaimSet.cs
- XPathParser.cs
- SafeSecurityHandles.cs
- DisposableCollectionWrapper.cs
- SmiEventSink_Default.cs
- BuildResult.cs
- CallSiteHelpers.cs
- LockedAssemblyCache.cs
- HtmlButton.cs
- DocumentReference.cs
- ResourceBinder.cs
- WindowPattern.cs
- WindowsFormsHostPropertyMap.cs
- ContainerParaClient.cs
- SchemaAttDef.cs
- DbConnectionInternal.cs
- _ContextAwareResult.cs
- FragmentQueryProcessor.cs
- SignatureHelper.cs
- IList.cs
- Figure.cs
- SpotLight.cs
- WindowsTreeView.cs
- Window.cs
- CommandBinding.cs
- WebPartDescriptionCollection.cs
- SplitterCancelEvent.cs
- FieldInfo.cs
- LocatorBase.cs
- MsmqInputChannelListenerBase.cs
- LayoutUtils.cs
- StaticExtensionConverter.cs
- ScrollEvent.cs
- sqlstateclientmanager.cs
- EmptyReadOnlyDictionaryInternal.cs
- CanonicalXml.cs
- TreeViewHitTestInfo.cs
- NavigationHelper.cs
- QueryOutputWriterV1.cs
- Set.cs
- OracleColumn.cs
- EditorAttributeInfo.cs
- MatrixAnimationUsingPath.cs
- HyperLink.cs
- MetadataCache.cs
- XmlArrayItemAttribute.cs
- WindowAutomationPeer.cs
- SeekStoryboard.cs
- ItemCollection.cs
- SendDesigner.xaml.cs
- AnimationClockResource.cs
- RowParagraph.cs
- ColorIndependentAnimationStorage.cs
- ConfigXmlSignificantWhitespace.cs
- Pointer.cs
- SplitterPanel.cs
- MatrixTransform.cs
- SqlSupersetValidator.cs
- PermissionSet.cs
- XPathEmptyIterator.cs
- EntryIndex.cs
- COMException.cs
- CharEntityEncoderFallback.cs
- ISO2022Encoding.cs
- HwndHostAutomationPeer.cs
- panel.cs
- EventDescriptor.cs
- ResumeStoryboard.cs
- DesignerSerializationVisibilityAttribute.cs
- ToolBar.cs
- QilGenerator.cs
- InvalidPrinterException.cs
- IntranetCredentialPolicy.cs
- BinaryObjectInfo.cs
- RequestValidator.cs
- recordstatefactory.cs
- wgx_render.cs
- EventArgs.cs
- FileDialogCustomPlacesCollection.cs
- BindingNavigator.cs
- Point3DValueSerializer.cs
- ListContractAdapter.cs
- WebBrowserBase.cs