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
- Visitor.cs
- NavigationEventArgs.cs
- DbDataSourceEnumerator.cs
- ImageMapEventArgs.cs
- TargetFrameworkAttribute.cs
- ValidatorCollection.cs
- DataChangedEventManager.cs
- AmbientValueAttribute.cs
- ContextQuery.cs
- CacheAxisQuery.cs
- ApplicationSecurityManager.cs
- FrugalMap.cs
- LateBoundBitmapDecoder.cs
- ValidationError.cs
- ConstructorExpr.cs
- RenderData.cs
- ContentPlaceHolder.cs
- AuthenticationModeHelper.cs
- PolyBezierSegmentFigureLogic.cs
- HttpListenerResponse.cs
- ChangePasswordDesigner.cs
- LayoutInformation.cs
- HtmlEmptyTagControlBuilder.cs
- SyncMethodInvoker.cs
- PipeException.cs
- webclient.cs
- InputBuffer.cs
- TypedTableBaseExtensions.cs
- AudioFileOut.cs
- HttpServerUtilityBase.cs
- Int64Animation.cs
- VariableExpressionConverter.cs
- TreeNodeBinding.cs
- PageEventArgs.cs
- InfiniteTimeSpanConverter.cs
- Expression.cs
- PeerNameRecord.cs
- SqlParameterCollection.cs
- Keyboard.cs
- ApplicationBuildProvider.cs
- SafeTimerHandle.cs
- _SslState.cs
- UnknownBitmapDecoder.cs
- ColorConvertedBitmapExtension.cs
- SchemaDeclBase.cs
- TypeExtensionConverter.cs
- AuthorizationPolicyTypeElement.cs
- SHA512Managed.cs
- PolicyLevel.cs
- TreeWalker.cs
- XmlWellformedWriter.cs
- BamlWriter.cs
- UserControlCodeDomTreeGenerator.cs
- SqlColumnizer.cs
- TextContainer.cs
- ManifestSignedXml.cs
- EndOfStreamException.cs
- AutomationElementIdentifiers.cs
- SchemaSetCompiler.cs
- PartialArray.cs
- DynamicUpdateCommand.cs
- EditorAttributeInfo.cs
- SoapParser.cs
- OdbcPermission.cs
- ArithmeticException.cs
- InteropBitmapSource.cs
- AssemblyBuilder.cs
- ComPlusContractBehavior.cs
- NavigationHelper.cs
- TableSectionStyle.cs
- DBCommand.cs
- ModelItem.cs
- ScrollEventArgs.cs
- NonPrimarySelectionGlyph.cs
- StreamSecurityUpgradeAcceptorAsyncResult.cs
- TableColumn.cs
- ServiceEndpointAssociationProvider.cs
- SystemResourceHost.cs
- PictureBoxDesigner.cs
- IgnoreFlushAndCloseStream.cs
- SafeLocalMemHandle.cs
- StringAnimationBase.cs
- FontUnitConverter.cs
- ExecutionContext.cs
- TextPointer.cs
- MarkupExtensionParser.cs
- ListSurrogate.cs
- EmbossBitmapEffect.cs
- CheckBoxField.cs
- TreeNodeBinding.cs
- OracleCommandSet.cs
- assemblycache.cs
- HtmlInputSubmit.cs
- CompositeKey.cs
- login.cs
- mediaeventshelper.cs
- NetPeerTcpBindingCollectionElement.cs
- ThreadExceptionDialog.cs
- FlowLayout.cs
- GridToolTip.cs