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
- FontDriver.cs
- OdbcRowUpdatingEvent.cs
- securitymgrsite.cs
- SchemaTableOptionalColumn.cs
- XPathAxisIterator.cs
- OrderPreservingPipeliningMergeHelper.cs
- ImageMap.cs
- SpeechSeg.cs
- ServiceContractViewControl.Designer.cs
- XamlFigureLengthSerializer.cs
- CompositeFontParser.cs
- Size.cs
- PersonalizationProvider.cs
- Pen.cs
- SiteMapNodeItemEventArgs.cs
- Calendar.cs
- Transform3D.cs
- XamlPathDataSerializer.cs
- EdmToObjectNamespaceMap.cs
- SqlSelectStatement.cs
- XmlTypeMapping.cs
- Stream.cs
- loginstatus.cs
- Vector3dCollection.cs
- StringValidator.cs
- PointAnimationClockResource.cs
- AcceleratedTokenProviderState.cs
- HtmlTextViewAdapter.cs
- StickyNoteAnnotations.cs
- ExceptionUtil.cs
- GridToolTip.cs
- FormViewInsertedEventArgs.cs
- ProfileSection.cs
- ContextBase.cs
- DetailsView.cs
- TextOnlyOutput.cs
- DataControlFieldCell.cs
- SinglePageViewer.cs
- CapiNative.cs
- SafeSecurityHandles.cs
- Processor.cs
- EpmSyndicationContentSerializer.cs
- RepeatBehavior.cs
- DetailsViewInsertEventArgs.cs
- SemaphoreFullException.cs
- HttpRuntime.cs
- HtmlButton.cs
- HttpWebRequestElement.cs
- SqlDataSourceSelectingEventArgs.cs
- GlyphRunDrawing.cs
- DummyDataSource.cs
- BuildProvider.cs
- AlgoModule.cs
- URLIdentityPermission.cs
- SizeAnimation.cs
- PropertyHelper.cs
- DefaultProxySection.cs
- Metafile.cs
- WebPartsPersonalization.cs
- ShaderRenderModeValidation.cs
- EqualityComparer.cs
- WindowsRichEditRange.cs
- OracleConnection.cs
- ExceptionUtil.cs
- SmiEventSink.cs
- SymDocumentType.cs
- Socket.cs
- ConfigXmlWhitespace.cs
- EmptyStringExpandableObjectConverter.cs
- UpDownBase.cs
- ApplicationDirectory.cs
- SystemIPInterfaceProperties.cs
- _SafeNetHandles.cs
- WebPartConnectionsConfigureVerb.cs
- TextParagraph.cs
- QueryCacheEntry.cs
- ValidationRule.cs
- DtrList.cs
- DataListItemEventArgs.cs
- TraceLevelStore.cs
- NavigatorInput.cs
- ManualResetEventSlim.cs
- ParameterCollectionEditor.cs
- FormsAuthenticationConfiguration.cs
- DuplicateWaitObjectException.cs
- OutputCacheProfileCollection.cs
- PasswordRecovery.cs
- CubicEase.cs
- ArgumentNullException.cs
- ExpressionLexer.cs
- XmlSerializerOperationBehavior.cs
- ColumnReorderedEventArgs.cs
- ParameterElement.cs
- MetadataItemEmitter.cs
- Mouse.cs
- RouteCollection.cs
- ChangeProcessor.cs
- AttachmentService.cs
- BrushMappingModeValidation.cs
- Stack.cs