Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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; } } } } // 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
- UTF8Encoding.cs
- ExtendedPropertyCollection.cs
- Transaction.cs
- XNameConverter.cs
- PieceDirectory.cs
- ConnectionInterfaceCollection.cs
- ReturnEventArgs.cs
- MarkupCompiler.cs
- MouseGestureConverter.cs
- StaticResourceExtension.cs
- HttpCookiesSection.cs
- HtmlElementCollection.cs
- WebPartsSection.cs
- SafeNativeMethods.cs
- SizeAnimation.cs
- ConstraintConverter.cs
- RotateTransform.cs
- GenericsInstances.cs
- PageStatePersister.cs
- NamespaceImport.cs
- CacheMemory.cs
- XmlWhitespace.cs
- Schema.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- PageCatalogPartDesigner.cs
- WmiEventSink.cs
- UnmanagedMemoryAccessor.cs
- DataGridViewBindingCompleteEventArgs.cs
- SafeSecurityHandles.cs
- SchemaConstraints.cs
- HopperCache.cs
- Highlights.cs
- DataList.cs
- GroupQuery.cs
- DynamicValueConverter.cs
- VirtualizingPanel.cs
- XmlSchemaComplexContentExtension.cs
- GlyphCache.cs
- PropertyRef.cs
- WebZone.cs
- QueryAsyncResult.cs
- Int32Rect.cs
- AsnEncodedData.cs
- PreviewPrintController.cs
- RectKeyFrameCollection.cs
- TemplateBuilder.cs
- cryptoapiTransform.cs
- ReplyChannelBinder.cs
- WebEncodingValidator.cs
- Pair.cs
- AmbientValueAttribute.cs
- CheckedPointers.cs
- XmlILStorageConverter.cs
- EntryPointNotFoundException.cs
- UdpTransportBindingElement.cs
- UserPersonalizationStateInfo.cs
- DBCommand.cs
- Int32CollectionConverter.cs
- SessionSwitchEventArgs.cs
- DBCommandBuilder.cs
- NavigationPropertyEmitter.cs
- DataGridViewLinkCell.cs
- TabControl.cs
- StatusStrip.cs
- SmtpMail.cs
- ForwardPositionQuery.cs
- XPathArrayIterator.cs
- OverloadGroupAttribute.cs
- FlowDocumentPaginator.cs
- StylusShape.cs
- DiagnosticTrace.cs
- SvcMapFileLoader.cs
- SchemaTypeEmitter.cs
- basecomparevalidator.cs
- InstallerTypeAttribute.cs
- XmlSchemaValidator.cs
- ParameterReplacerVisitor.cs
- CommonGetThemePartSize.cs
- AppliedDeviceFiltersEditor.cs
- DataControlPagerLinkButton.cs
- StringFormat.cs
- ResolveCriteriaApril2005.cs
- TextChangedEventArgs.cs
- WeakReference.cs
- AssemblyCache.cs
- LazyTextWriterCreator.cs
- OLEDB_Util.cs
- PropertyMapper.cs
- DES.cs
- HostingEnvironmentSection.cs
- SqlDataSourceSummaryPanel.cs
- CodeDirectionExpression.cs
- DataServiceProviderWrapper.cs
- IPEndPointCollection.cs
- FlowDocumentScrollViewer.cs
- FixedMaxHeap.cs
- DataListItemEventArgs.cs
- ColorAnimationBase.cs
- ToggleButton.cs
- DesignTimeXamlWriter.cs