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
- X509UI.cs
- ComponentResourceKeyConverter.cs
- HtmlInputControl.cs
- unsafenativemethodsother.cs
- Propagator.JoinPropagator.cs
- WeakReadOnlyCollection.cs
- Attributes.cs
- RoleGroupCollection.cs
- HtmlInputCheckBox.cs
- TemplateControlParser.cs
- TextAutomationPeer.cs
- CompositeDuplexBindingElementImporter.cs
- QueueProcessor.cs
- DaylightTime.cs
- UserControl.cs
- XpsS0ValidatingLoader.cs
- QueueProcessor.cs
- PropertyToken.cs
- WebFaultException.cs
- RadioButtonRenderer.cs
- EmptyReadOnlyDictionaryInternal.cs
- QilIterator.cs
- SafeEventLogWriteHandle.cs
- AddInToken.cs
- MarginCollapsingState.cs
- DataTableTypeConverter.cs
- ByteStack.cs
- SqlVersion.cs
- CompiledXpathExpr.cs
- OdbcEnvironmentHandle.cs
- Convert.cs
- XmlAttributeAttribute.cs
- QueryStringParameter.cs
- DbModificationClause.cs
- HttpModuleCollection.cs
- ObjectMemberMapping.cs
- __TransparentProxy.cs
- DataSourceSelectArguments.cs
- ExpressionVisitor.cs
- Property.cs
- ResizingMessageFilter.cs
- OleDbRowUpdatedEvent.cs
- ErrorWrapper.cs
- PageAsyncTaskManager.cs
- _LoggingObject.cs
- DrawingContextWalker.cs
- ErrorRuntimeConfig.cs
- Pipe.cs
- XmlSchemaAnnotation.cs
- DataGridViewAccessibleObject.cs
- ProviderBase.cs
- EllipseGeometry.cs
- WorkflowInstanceExtensionManager.cs
- Win32Native.cs
- SettingsSection.cs
- MailAddress.cs
- StorageAssociationTypeMapping.cs
- sqlstateclientmanager.cs
- UnitySerializationHolder.cs
- PageParserFilter.cs
- ServicePoint.cs
- SettingsPropertyNotFoundException.cs
- AppDomainAttributes.cs
- HtmlTitle.cs
- ExpressionQuoter.cs
- DrawingContextDrawingContextWalker.cs
- EventManager.cs
- SelectionPatternIdentifiers.cs
- TypeUtil.cs
- TraceLevelStore.cs
- ToolStripOverflow.cs
- ItemCheckedEvent.cs
- SchemaEntity.cs
- ListViewUpdatedEventArgs.cs
- GrammarBuilderRuleRef.cs
- ImportContext.cs
- FixedTextPointer.cs
- LingerOption.cs
- ValidatorUtils.cs
- addressfiltermode.cs
- ConfigurationValue.cs
- NoneExcludedImageIndexConverter.cs
- SessionPageStatePersister.cs
- PageContentCollection.cs
- CapabilitiesPattern.cs
- cryptoapiTransform.cs
- LinkDesigner.cs
- CodeNamespace.cs
- SqlReorderer.cs
- EncodingFallbackAwareXmlTextWriter.cs
- PeerNameRecordCollection.cs
- WeakReferenceEnumerator.cs
- FileSecurity.cs
- SHA512Managed.cs
- COM2EnumConverter.cs
- RoleGroup.cs
- SerTrace.cs
- XmlArrayItemAttribute.cs
- FixedTextSelectionProcessor.cs
- ObjectHandle.cs