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
- MultipleViewProviderWrapper.cs
- SoapAttributeOverrides.cs
- XmlArrayItemAttributes.cs
- CompatibleIComparer.cs
- DataPagerCommandEventArgs.cs
- WebServiceTypeData.cs
- WebPartMenuStyle.cs
- GridViewActionList.cs
- FixedDocument.cs
- TimeSpanValidatorAttribute.cs
- WindowsFormsSectionHandler.cs
- GeometryDrawing.cs
- BreakRecordTable.cs
- serverconfig.cs
- StrongNameKeyPair.cs
- MessageBox.cs
- SiteIdentityPermission.cs
- Component.cs
- _Connection.cs
- InputLanguageProfileNotifySink.cs
- WebPartDisplayModeCollection.cs
- ToolStripPanelRow.cs
- CDSsyncETWBCLProvider.cs
- SettingsSavedEventArgs.cs
- FixedSOMImage.cs
- EncoderParameter.cs
- ObjectDataSourceFilteringEventArgs.cs
- SqlCacheDependency.cs
- ToolStripSystemRenderer.cs
- Literal.cs
- ToolStripItemRenderEventArgs.cs
- ValueExpressions.cs
- CancellationTokenSource.cs
- CompilationLock.cs
- SettingsSavedEventArgs.cs
- BindValidationContext.cs
- IODescriptionAttribute.cs
- LineSegment.cs
- ToolStripContainer.cs
- Light.cs
- ControlBuilder.cs
- FormClosedEvent.cs
- SqlClientMetaDataCollectionNames.cs
- CatalogPart.cs
- SyntaxCheck.cs
- ToolStripLabel.cs
- VariableAction.cs
- NativeActivity.cs
- SqlFunctionAttribute.cs
- PEFileEvidenceFactory.cs
- HyperLinkColumn.cs
- Source.cs
- BitmapEncoder.cs
- FileIOPermission.cs
- DynamicField.cs
- ProbeMatchesCD1.cs
- InkCanvasFeedbackAdorner.cs
- _IPv4Address.cs
- ProjectionCamera.cs
- UIntPtr.cs
- ResourceManagerWrapper.cs
- CopyOnWriteList.cs
- WeakHashtable.cs
- ReflectionServiceProvider.cs
- OleDbRowUpdatedEvent.cs
- UrlRoutingModule.cs
- GeometryDrawing.cs
- DEREncoding.cs
- MessageBox.cs
- ExtensionDataObject.cs
- ReadingWritingEntityEventArgs.cs
- BuildProvider.cs
- ProfileProvider.cs
- KeyedCollection.cs
- AmbientLight.cs
- ClientBuildManagerCallback.cs
- CombinedGeometry.cs
- RtfToken.cs
- CrossAppDomainChannel.cs
- SoapClientProtocol.cs
- BaseDataList.cs
- AttributeProviderAttribute.cs
- MulticastDelegate.cs
- DataServiceRequestException.cs
- CodeTypeReferenceCollection.cs
- ServicePerformanceCounters.cs
- TextSelectionHelper.cs
- UriTemplateVariableQueryValue.cs
- ImageAutomationPeer.cs
- DocumentSequenceHighlightLayer.cs
- TextPattern.cs
- Canvas.cs
- TableSectionStyle.cs
- AutomationElementIdentifiers.cs
- FilterEventArgs.cs
- xmlfixedPageInfo.cs
- TreeNodeCollection.cs
- FixedPosition.cs
- RowType.cs
- CookieParameter.cs