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
- GeneralTransform3DCollection.cs
- ToolStripProgressBar.cs
- WriteFileContext.cs
- ProfileGroupSettingsCollection.cs
- HostProtectionPermission.cs
- SelectionEditingBehavior.cs
- ChooseAction.cs
- ConfigurationValidatorBase.cs
- XmlIgnoreAttribute.cs
- AuthenticationService.cs
- XamlReaderHelper.cs
- ConstraintCollection.cs
- ToolStripDropTargetManager.cs
- AuditLog.cs
- precedingquery.cs
- TransformedBitmap.cs
- DocumentsTrace.cs
- UnderstoodHeaders.cs
- RequestCachePolicy.cs
- ItemDragEvent.cs
- XmlBaseWriter.cs
- ApplicationFileCodeDomTreeGenerator.cs
- SiteMapHierarchicalDataSourceView.cs
- ImageFormat.cs
- CellConstantDomain.cs
- HtmlControlPersistable.cs
- mediapermission.cs
- Rule.cs
- RowUpdatedEventArgs.cs
- CompositeScriptReference.cs
- WebBrowserUriTypeConverter.cs
- RemoteWebConfigurationHost.cs
- WindowsFormsDesignerOptionService.cs
- StreamGeometryContext.cs
- MarkedHighlightComponent.cs
- ClientTarget.cs
- MdiWindowListStrip.cs
- BufferedGraphicsManager.cs
- WebPartDisplayModeCollection.cs
- ToolStripTextBox.cs
- HttpWebResponse.cs
- TreeViewHitTestInfo.cs
- MobileTextWriter.cs
- TextServicesCompartmentContext.cs
- ToolTipAutomationPeer.cs
- CodeMethodReturnStatement.cs
- Model3D.cs
- NullableDoubleAverageAggregationOperator.cs
- GridViewRow.cs
- OleDbRowUpdatedEvent.cs
- HttpRequest.cs
- SystemIPv4InterfaceProperties.cs
- ExpandCollapseProviderWrapper.cs
- SkewTransform.cs
- NetworkInformationException.cs
- ResourcesChangeInfo.cs
- XsdDuration.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- UIHelper.cs
- LinkDesigner.cs
- FaultDescription.cs
- PropertiesTab.cs
- DocumentApplication.cs
- FixedFindEngine.cs
- Membership.cs
- Tracking.cs
- ProfileBuildProvider.cs
- _ShellExpression.cs
- DispatcherTimer.cs
- CookieProtection.cs
- XhtmlBasicPageAdapter.cs
- _WebProxyDataBuilder.cs
- ListViewTableRow.cs
- Query.cs
- XmlObjectSerializerReadContextComplex.cs
- BuildResultCache.cs
- HtmlHead.cs
- Validator.cs
- TextBoxRenderer.cs
- WindowsScroll.cs
- SocketException.cs
- RemoteWebConfigurationHostStream.cs
- SingletonChannelAcceptor.cs
- DataBinding.cs
- ProcessDesigner.cs
- XamlSerializationHelper.cs
- XmlNullResolver.cs
- CapabilitiesPattern.cs
- GridViewUpdateEventArgs.cs
- SecurityPolicySection.cs
- SynchronizedInputHelper.cs
- SecurityException.cs
- QilStrConcatenator.cs
- ISCIIEncoding.cs
- NativeMethods.cs
- HTMLTextWriter.cs
- UrlEncodedParameterWriter.cs
- CacheVirtualItemsEvent.cs
- WSFederationHttpBindingCollectionElement.cs
- XmlWriterSettings.cs