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
- Mouse.cs
- XmlImplementation.cs
- cookiecontainer.cs
- CharEntityEncoderFallback.cs
- ChainOfResponsibility.cs
- DrawingGroupDrawingContext.cs
- HwndHost.cs
- DateBoldEvent.cs
- Token.cs
- WebPartHelpVerb.cs
- RegexNode.cs
- BeginCreateSecurityTokenRequest.cs
- ManagementQuery.cs
- DetailsViewDeleteEventArgs.cs
- CopyAttributesAction.cs
- DrawListViewColumnHeaderEventArgs.cs
- Italic.cs
- ServiceDiscoveryBehavior.cs
- Util.cs
- FixedPosition.cs
- CookieHandler.cs
- NavigationPropertyEmitter.cs
- FormViewUpdateEventArgs.cs
- ClientTarget.cs
- PathFigureCollection.cs
- CustomAttribute.cs
- MissingManifestResourceException.cs
- IndentTextWriter.cs
- SecurityHeaderElementInferenceEngine.cs
- ScriptMethodAttribute.cs
- PenLineCapValidation.cs
- CancellationHandlerDesigner.cs
- HwndSource.cs
- InstanceKeyNotReadyException.cs
- HasCopySemanticsAttribute.cs
- TreeViewAutomationPeer.cs
- StringBlob.cs
- ServerValidateEventArgs.cs
- HwndAppCommandInputProvider.cs
- ScriptControl.cs
- DbCommandDefinition.cs
- SpeechSynthesizer.cs
- ComponentChangedEvent.cs
- TouchFrameEventArgs.cs
- SegmentInfo.cs
- ListBoxItemWrapperAutomationPeer.cs
- DataGridViewHitTestInfo.cs
- MatrixAnimationUsingPath.cs
- Pen.cs
- SqlNodeAnnotation.cs
- PropertyPathWorker.cs
- CodeTypeDeclarationCollection.cs
- SplineKeyFrames.cs
- WebSysDescriptionAttribute.cs
- HitTestResult.cs
- TaskFactory.cs
- MetadataWorkspace.cs
- ImportContext.cs
- RIPEMD160Managed.cs
- HttpConfigurationSystem.cs
- EdmSchemaError.cs
- DispatcherExceptionEventArgs.cs
- DecoderNLS.cs
- ZipIORawDataFileBlock.cs
- CodeConditionStatement.cs
- XamlWriter.cs
- FontStretchConverter.cs
- SchemaLookupTable.cs
- CompiledQueryCacheEntry.cs
- ZipPackagePart.cs
- LinearQuaternionKeyFrame.cs
- XamlTreeBuilder.cs
- RootProfilePropertySettingsCollection.cs
- CacheDependency.cs
- XmlILAnnotation.cs
- ServiceMetadataContractBehavior.cs
- FacetDescription.cs
- XmlAtomErrorReader.cs
- CanExecuteRoutedEventArgs.cs
- Point3DIndependentAnimationStorage.cs
- BoundField.cs
- Stack.cs
- TextStore.cs
- Span.cs
- DataSourceSerializationException.cs
- Highlights.cs
- Publisher.cs
- MatrixKeyFrameCollection.cs
- TemplateXamlParser.cs
- SiblingIterators.cs
- SHA512.cs
- VectorValueSerializer.cs
- LoadGrammarCompletedEventArgs.cs
- VisualBrush.cs
- XPathMultyIterator.cs
- StylusDevice.cs
- SafeViewOfFileHandle.cs
- Translator.cs
- BindingGraph.cs
- FamilyMapCollection.cs