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
- CurrentChangingEventArgs.cs
- PathSegmentCollection.cs
- ButtonBaseAdapter.cs
- PathSegmentCollection.cs
- RequiredFieldValidator.cs
- FactoryGenerator.cs
- EncodingNLS.cs
- Translator.cs
- EditorResources.cs
- GeometryHitTestResult.cs
- MultiTouchSystemGestureLogic.cs
- InkCanvasSelectionAdorner.cs
- LambdaCompiler.Expressions.cs
- DataGridViewCellConverter.cs
- StickyNoteAnnotations.cs
- PenContexts.cs
- ProxyAttribute.cs
- COM2IDispatchConverter.cs
- TypeToken.cs
- UniqueIdentifierService.cs
- MenuItem.cs
- ExpressionBindingCollection.cs
- StrokeCollection2.cs
- AsyncOperation.cs
- WS2007HttpBindingElement.cs
- WizardPanel.cs
- HealthMonitoringSection.cs
- UTF7Encoding.cs
- IUnknownConstantAttribute.cs
- XamlFilter.cs
- XPathPatternBuilder.cs
- ConfigurationElement.cs
- sqlpipe.cs
- HttpModuleAction.cs
- SqlConnectionPoolGroupProviderInfo.cs
- BindValidator.cs
- SQLConvert.cs
- FunctionCommandText.cs
- SafeLocalAllocation.cs
- TextTreeTextBlock.cs
- Encoder.cs
- XPathNode.cs
- LoginUtil.cs
- ToolCreatedEventArgs.cs
- OleDbRowUpdatedEvent.cs
- ByteAnimation.cs
- TickBar.cs
- CompilerResults.cs
- xsdvalidator.cs
- CodeChecksumPragma.cs
- MemberRelationshipService.cs
- ModelUIElement3D.cs
- GridViewCommandEventArgs.cs
- AdornedElementPlaceholder.cs
- CanonicalFontFamilyReference.cs
- DateRangeEvent.cs
- CollectionDataContractAttribute.cs
- UICuesEvent.cs
- Wizard.cs
- SqlClientMetaDataCollectionNames.cs
- ResourceContainerWrapper.cs
- TextElementAutomationPeer.cs
- StringValidator.cs
- GridViewCellAutomationPeer.cs
- BamlVersionHeader.cs
- AssociationSet.cs
- safelinkcollection.cs
- NotificationContext.cs
- SqlClientWrapperSmiStreamChars.cs
- TextRangeEditTables.cs
- Style.cs
- rsa.cs
- UIntPtr.cs
- BStrWrapper.cs
- PointAnimationUsingKeyFrames.cs
- PageStatePersister.cs
- ApplicationDirectoryMembershipCondition.cs
- FormsAuthenticationTicket.cs
- HTMLTagNameToTypeMapper.cs
- DialogResultConverter.cs
- ConnectionManagementElement.cs
- GridViewCellAutomationPeer.cs
- _SSPIWrapper.cs
- NameValueFileSectionHandler.cs
- PerformanceCounterPermissionEntry.cs
- FreezableOperations.cs
- HttpModuleAction.cs
- ValidationService.cs
- BulletDecorator.cs
- RegexCompilationInfo.cs
- SamlAudienceRestrictionCondition.cs
- VisualStyleRenderer.cs
- Stopwatch.cs
- ColorTranslator.cs
- SchemaLookupTable.cs
- Input.cs
- ResponseStream.cs
- CategoryAttribute.cs
- HttpListenerPrefixCollection.cs
- InternalPermissions.cs