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
- GeometryHitTestResult.cs
- RestHandler.cs
- XPathNavigatorReader.cs
- Stroke2.cs
- PathNode.cs
- ResXResourceReader.cs
- DbConnectionPoolGroup.cs
- _OSSOCK.cs
- OuterProxyWrapper.cs
- RemoteWebConfigurationHostStream.cs
- CodeAccessSecurityEngine.cs
- PartialCachingControl.cs
- SearchForVirtualItemEventArgs.cs
- XmlPropertyBag.cs
- LoadRetryAsyncResult.cs
- QilReplaceVisitor.cs
- AsyncWaitHandle.cs
- SecurityDocument.cs
- ComponentCommands.cs
- InvalidAsynchronousStateException.cs
- StandardCommands.cs
- XmlChildEnumerator.cs
- ListViewCancelEventArgs.cs
- FileClassifier.cs
- HijriCalendar.cs
- CombinedGeometry.cs
- BaseDataList.cs
- ValueProviderWrapper.cs
- dataprotectionpermission.cs
- TypeSource.cs
- DESCryptoServiceProvider.cs
- CanonicalXml.cs
- TextModifier.cs
- ServiceHttpHandlerFactory.cs
- SecurityManager.cs
- StreamSecurityUpgradeInitiator.cs
- ProviderBase.cs
- XmlSchemaSequence.cs
- ScrollData.cs
- DeclaredTypeValidator.cs
- CodeMemberEvent.cs
- TemplateNameScope.cs
- LowerCaseStringConverter.cs
- DoubleLink.cs
- FixedTextContainer.cs
- BufferModeSettings.cs
- AnimatedTypeHelpers.cs
- SHA384Managed.cs
- DoubleAnimationUsingPath.cs
- WebDescriptionAttribute.cs
- SelectionItemPatternIdentifiers.cs
- VarRefManager.cs
- TemplatingOptionsDialog.cs
- LinkedDataMemberFieldEditor.cs
- SystemIcmpV4Statistics.cs
- HostingEnvironmentWrapper.cs
- DrawingContext.cs
- SQLBytesStorage.cs
- TypeElement.cs
- SchemaAttDef.cs
- LambdaExpression.cs
- SHA1Managed.cs
- SystemTcpConnection.cs
- ToolStripGrip.cs
- ValidatingPropertiesEventArgs.cs
- RotateTransform.cs
- GatewayIPAddressInformationCollection.cs
- IPGlobalProperties.cs
- RenderDataDrawingContext.cs
- lengthconverter.cs
- HelpProvider.cs
- ScrollEventArgs.cs
- InputLanguageEventArgs.cs
- Config.cs
- OnOperation.cs
- ParserOptions.cs
- DbExpressionVisitor_TResultType.cs
- ContentControl.cs
- WebPartDescription.cs
- QilLoop.cs
- WorkflowOwnershipException.cs
- QueryConverter.cs
- EdmComplexTypeAttribute.cs
- SystemIPv6InterfaceProperties.cs
- OLEDB_Util.cs
- _AutoWebProxyScriptWrapper.cs
- Select.cs
- DocumentSequenceHighlightLayer.cs
- hebrewshape.cs
- SchemaCollectionCompiler.cs
- LinqDataSourceHelper.cs
- DrawingContext.cs
- CachedRequestParams.cs
- ExpressionsCollectionEditor.cs
- _KerberosClient.cs
- WebPartPersonalization.cs
- EmptyEnumerable.cs
- CacheOutputQuery.cs
- ExtenderProvidedPropertyAttribute.cs
- SchemaObjectWriter.cs