Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- DataGridItemAttachedStorage.cs
- OrderedParallelQuery.cs
- ValidatingReaderNodeData.cs
- TextRunCacheImp.cs
- SqlXml.cs
- CodeTryCatchFinallyStatement.cs
- CompiledXpathExpr.cs
- CodeTypeReferenceExpression.cs
- AtomContentProperty.cs
- FormatControl.cs
- RenderOptions.cs
- ScopedKnownTypes.cs
- XmlException.cs
- GenericIdentity.cs
- CryptoHelper.cs
- TickBar.cs
- DomainUpDown.cs
- SimplePropertyEntry.cs
- HostExecutionContextManager.cs
- JournalEntryStack.cs
- DataGridViewCheckBoxCell.cs
- DataSourceControlBuilder.cs
- ImageMapEventArgs.cs
- BuildManager.cs
- Binding.cs
- Sorting.cs
- DeviceContexts.cs
- OleDbTransaction.cs
- ReliableChannelFactory.cs
- UnitySerializationHolder.cs
- XmlAttributeProperties.cs
- PeerMessageDispatcher.cs
- ViewSimplifier.cs
- MenuItemBindingCollection.cs
- JsonServiceDocumentSerializer.cs
- WindowsStreamSecurityElement.cs
- MarshalByValueComponent.cs
- XsltException.cs
- PointLightBase.cs
- DataGridViewMethods.cs
- CapabilitiesSection.cs
- HtmlInputReset.cs
- DataBoundControl.cs
- TextParagraphProperties.cs
- BigInt.cs
- XpsColorContext.cs
- PathParser.cs
- CodeStatement.cs
- DBDataPermission.cs
- DbDataRecord.cs
- StyleModeStack.cs
- SqlAggregateChecker.cs
- ZipFileInfoCollection.cs
- QueryOutputWriter.cs
- MouseGesture.cs
- TextChangedEventArgs.cs
- EmptyTextWriter.cs
- HtmlForm.cs
- XmlSchemaComplexType.cs
- ContainsRowNumberChecker.cs
- ProfileGroupSettings.cs
- DependencyPropertyKind.cs
- Dictionary.cs
- TypeAccessException.cs
- LogPolicy.cs
- Int32Rect.cs
- AbsoluteQuery.cs
- basenumberconverter.cs
- XmlSchemaDocumentation.cs
- PolicyImporterElementCollection.cs
- BamlTreeNode.cs
- RequestQueue.cs
- DataColumnMapping.cs
- StatusBarPanelClickEvent.cs
- CachingHintValidation.cs
- XmlSchemaComplexContentRestriction.cs
- SmiEventStream.cs
- Decoder.cs
- ListControl.cs
- NameValueSectionHandler.cs
- ZipQueryOperator.cs
- RuntimeVariableList.cs
- XmlUnspecifiedAttribute.cs
- unsafenativemethodstextservices.cs
- SafeMILHandle.cs
- XmlSchemaResource.cs
- TableAutomationPeer.cs
- XmlDocumentFragment.cs
- isolationinterop.cs
- ReadOnlyNameValueCollection.cs
- DifferencingCollection.cs
- OdbcConnectionString.cs
- LayoutEvent.cs
- ZoneMembershipCondition.cs
- Stylesheet.cs
- CuspData.cs
- TargetParameterCountException.cs
- listitem.cs
- CookieParameter.cs
- FixedStringLookup.cs