Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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; } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PathSegmentCollection.cs
- SessionState.cs
- SystemException.cs
- SqlGenericUtil.cs
- Debug.cs
- EntityViewGenerationConstants.cs
- AutomationPeer.cs
- DataGridViewCheckBoxCell.cs
- SuppressedPackageProperties.cs
- RewritingPass.cs
- BamlLocalizableResourceKey.cs
- SqlVersion.cs
- PenContext.cs
- WindowsNonControl.cs
- DrawingBrush.cs
- BamlLocalizableResourceKey.cs
- Connector.cs
- Vector3DConverter.cs
- TextRunCache.cs
- ErrorEventArgs.cs
- WmlLiteralTextAdapter.cs
- TextBoxView.cs
- SecurityAttributeGenerationHelper.cs
- RequiredFieldValidator.cs
- ReferentialConstraint.cs
- PlainXmlDeserializer.cs
- WebPartRestoreVerb.cs
- ObjectTag.cs
- InvalidEnumArgumentException.cs
- And.cs
- DrawListViewColumnHeaderEventArgs.cs
- sortedlist.cs
- AppDomainProtocolHandler.cs
- TextEditorTyping.cs
- HMAC.cs
- TextServicesProperty.cs
- ImpersonationContext.cs
- LocatorPart.cs
- BinHexEncoder.cs
- WebDescriptionAttribute.cs
- PenLineJoinValidation.cs
- CounterSetInstanceCounterDataSet.cs
- Variable.cs
- TextElementEnumerator.cs
- StyleXamlParser.cs
- SmiEventSink.cs
- ISAPIApplicationHost.cs
- UiaCoreTypesApi.cs
- EventRecordWrittenEventArgs.cs
- DbCommandDefinition.cs
- SoapProcessingBehavior.cs
- PerformanceCountersElement.cs
- WebPartExportVerb.cs
- AsymmetricSignatureFormatter.cs
- HitTestWithGeometryDrawingContextWalker.cs
- DetailsViewInsertedEventArgs.cs
- TreeViewImageIndexConverter.cs
- FormViewPagerRow.cs
- HttpClientCertificate.cs
- DesignerTransactionCloseEvent.cs
- AtomEntry.cs
- SafeNativeMethods.cs
- EmptyCollection.cs
- RegexGroup.cs
- ViewService.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- NavigationHelper.cs
- ProcessStartInfo.cs
- PTManager.cs
- securitycriticaldataClass.cs
- RenderDataDrawingContext.cs
- WebEventTraceProvider.cs
- EntityContainer.cs
- KeyTimeConverter.cs
- StorageComplexPropertyMapping.cs
- EncryptedType.cs
- RuleSetReference.cs
- GridViewRowCollection.cs
- DependencyPropertyConverter.cs
- ControlsConfig.cs
- Int32KeyFrameCollection.cs
- TextDecorationCollectionConverter.cs
- ResizeBehavior.cs
- AspNetSynchronizationContext.cs
- HtmlTableCellCollection.cs
- ToolbarAUtomationPeer.cs
- WebEventCodes.cs
- HMAC.cs
- TransportChannelListener.cs
- AddInToken.cs
- SecurityContext.cs
- XmlC14NWriter.cs
- BevelBitmapEffect.cs
- ECDiffieHellmanPublicKey.cs
- PrePostDescendentsWalker.cs
- FontCacheLogic.cs
- HttpCapabilitiesEvaluator.cs
- PersonalizationProvider.cs
- WebPartConnectVerb.cs
- ButtonPopupAdapter.cs