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
- CellQuery.cs
- ValidationPropertyAttribute.cs
- CursorEditor.cs
- CatalogZone.cs
- SmiRequestExecutor.cs
- CommentEmitter.cs
- DesignerAdRotatorAdapter.cs
- WinFormsComponentEditor.cs
- ConfigurationErrorsException.cs
- AliasedSlot.cs
- ZoneButton.cs
- SystemNetworkInterface.cs
- RegexWorker.cs
- Model3DCollection.cs
- UnsafeNativeMethods.cs
- SrgsSemanticInterpretationTag.cs
- InternalControlCollection.cs
- LinkDescriptor.cs
- HtmlPageAdapter.cs
- BuilderInfo.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- ITextView.cs
- WsatConfiguration.cs
- LinqDataSourceDisposeEventArgs.cs
- MsmqException.cs
- PageRequestManager.cs
- ResourceDescriptionAttribute.cs
- InfoCardCryptoHelper.cs
- ObjectDataSourceDesigner.cs
- DataBindingHandlerAttribute.cs
- Hash.cs
- XmlBindingWorker.cs
- AssemblyResolver.cs
- WSSecurityPolicy12.cs
- sqlpipe.cs
- VectorAnimationUsingKeyFrames.cs
- XmlEntityReference.cs
- DBSqlParser.cs
- PriorityChain.cs
- WebPartConnectionsConnectVerb.cs
- EmptyEnumerator.cs
- UIElementPropertyUndoUnit.cs
- DataServiceHost.cs
- ScriptIgnoreAttribute.cs
- SqlEnums.cs
- TargetConverter.cs
- OleDbDataReader.cs
- OracleCommand.cs
- SqlCacheDependencyDatabase.cs
- RegexBoyerMoore.cs
- XmlObjectSerializerReadContextComplex.cs
- DigestComparer.cs
- ToolboxItemAttribute.cs
- UserPreferenceChangedEventArgs.cs
- MultiDataTrigger.cs
- WebEncodingValidatorAttribute.cs
- TransactionScope.cs
- PropertyEmitter.cs
- DataGridView.cs
- PassportIdentity.cs
- SimpleRecyclingCache.cs
- Tuple.cs
- CompoundFileIOPermission.cs
- GenericUriParser.cs
- CellConstant.cs
- VariableModifiersHelper.cs
- tibetanshape.cs
- ExcludePathInfo.cs
- RowUpdatingEventArgs.cs
- StorageComplexTypeMapping.cs
- PrimitiveList.cs
- GridViewRowCollection.cs
- HtmlInputHidden.cs
- SiteOfOriginPart.cs
- UTF32Encoding.cs
- SortQuery.cs
- DependencyPropertyDescriptor.cs
- ScriptManager.cs
- CacheRequest.cs
- DerivedKeySecurityToken.cs
- _IPv4Address.cs
- SoapExtension.cs
- OracleException.cs
- Parsers.cs
- CodeMemberMethod.cs
- PackagePartCollection.cs
- _UriTypeConverter.cs
- KnownTypesHelper.cs
- RenderData.cs
- Pkcs7Recipient.cs
- MediaSystem.cs
- XamlPoint3DCollectionSerializer.cs
- NavigationPropertyEmitter.cs
- ConfigXmlAttribute.cs
- TraceUtils.cs
- ElapsedEventArgs.cs
- ChannelManager.cs
- RoutedEventConverter.cs
- BufferManager.cs
- WinEventHandler.cs