Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / CompMod / System / ComponentModel / Design / Serialization / DefaultSerializationProviderAttribute.cs / 1 / 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
- RemotingException.cs
- AttributeData.cs
- ColumnPropertiesGroup.cs
- CompositionAdorner.cs
- XmlDocumentFragment.cs
- SecurityTokenException.cs
- NamedPermissionSet.cs
- CodeDomConfigurationHandler.cs
- TagPrefixAttribute.cs
- HttpResponseMessageProperty.cs
- CollectionChangedEventManager.cs
- CompModSwitches.cs
- CacheForPrimitiveTypes.cs
- TreeViewCancelEvent.cs
- ProxyElement.cs
- StringBuilder.cs
- DBParameter.cs
- SubtreeProcessor.cs
- PrePrepareMethodAttribute.cs
- DataFieldEditor.cs
- CurrentChangingEventManager.cs
- CustomCredentialPolicy.cs
- WindowsTab.cs
- ApplicationFileCodeDomTreeGenerator.cs
- GridViewDeleteEventArgs.cs
- Helpers.cs
- PackagePart.cs
- UIElement.cs
- CodeIterationStatement.cs
- ResXDataNode.cs
- CompilerInfo.cs
- EntityContainerAssociationSetEnd.cs
- BaseValidatorDesigner.cs
- TagMapInfo.cs
- HttpFileCollection.cs
- ApplyTemplatesAction.cs
- MSHTMLHost.cs
- PhonemeEventArgs.cs
- UIInitializationException.cs
- Pair.cs
- PointHitTestParameters.cs
- SkinBuilder.cs
- EncryptedData.cs
- dataprotectionpermissionattribute.cs
- Rotation3D.cs
- EditorPartChrome.cs
- XmlSerializationWriter.cs
- Exceptions.cs
- DeviceContext.cs
- RecognizedWordUnit.cs
- RenderingEventArgs.cs
- TextEditorSpelling.cs
- HatchBrush.cs
- SymbolType.cs
- FacetEnabledSchemaElement.cs
- InvokeSchedule.cs
- ImageListUtils.cs
- wgx_sdk_version.cs
- FilterableData.cs
- MediaPlayerState.cs
- ArglessEventHandlerProxy.cs
- HttpContext.cs
- RegularExpressionValidator.cs
- SqlVersion.cs
- ReflectionPermission.cs
- LoginCancelEventArgs.cs
- LoginView.cs
- XhtmlBasicImageAdapter.cs
- HttpProfileBase.cs
- URLIdentityPermission.cs
- Icon.cs
- StringAttributeCollection.cs
- InternalPermissions.cs
- DataGridTablesFactory.cs
- EntityViewGenerationAttribute.cs
- PhonemeEventArgs.cs
- Constraint.cs
- ValuePattern.cs
- StaticContext.cs
- FormsAuthenticationModule.cs
- CommandManager.cs
- DelegateSerializationHolder.cs
- Camera.cs
- nulltextnavigator.cs
- ClipboardProcessor.cs
- SignatureDescription.cs
- EndpointFilterProvider.cs
- DocComment.cs
- SolidColorBrush.cs
- GenericPrincipal.cs
- ProtocolsInstallComponent.cs
- InboundActivityHelper.cs
- _ScatterGatherBuffers.cs
- RequestTimeoutManager.cs
- TreeNodeClickEventArgs.cs
- SelectionChangedEventArgs.cs
- ResourceIDHelper.cs
- VectorAnimationUsingKeyFrames.cs
- ListViewGroup.cs
- PopupRootAutomationPeer.cs