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
- ToolboxItemAttribute.cs
- ZoneLinkButton.cs
- StateMachineDesignerPaint.cs
- DropSource.cs
- EdmComplexPropertyAttribute.cs
- X509ScopedServiceCertificateElement.cs
- StrokeNodeData.cs
- CollectionBuilder.cs
- ReadOnlyDictionary.cs
- WebPartConnectionsCancelVerb.cs
- TextEditorCharacters.cs
- RelationshipManager.cs
- AnnotationResource.cs
- TextOutput.cs
- DetailsViewDeletedEventArgs.cs
- ObjectItemCollection.cs
- SmtpTransport.cs
- DockAndAnchorLayout.cs
- HostingPreferredMapPath.cs
- VisualStyleElement.cs
- CodeBlockBuilder.cs
- EventItfInfo.cs
- MembershipSection.cs
- AmbientLight.cs
- TextEditorSpelling.cs
- LongValidatorAttribute.cs
- ApplicationId.cs
- UInt64Converter.cs
- ConnectionInterfaceCollection.cs
- DataGridTextColumn.cs
- HyperlinkAutomationPeer.cs
- OrderedDictionaryStateHelper.cs
- FixedSOMGroup.cs
- APCustomTypeDescriptor.cs
- OracleParameterCollection.cs
- WorkflowViewElement.cs
- PropertyPathWorker.cs
- ArrayExtension.cs
- TemplateContentLoader.cs
- BitFlagsGenerator.cs
- SequenceQuery.cs
- RequiredFieldValidator.cs
- RegistrationServices.cs
- XhtmlBasicLiteralTextAdapter.cs
- ReverseInheritProperty.cs
- ServiceChannelProxy.cs
- CryptoStream.cs
- SingleAnimation.cs
- CompilerErrorCollection.cs
- NaturalLanguageHyphenator.cs
- ResourceIDHelper.cs
- Merger.cs
- HandledMouseEvent.cs
- CompilerError.cs
- HuffCodec.cs
- TaskFileService.cs
- TextElementAutomationPeer.cs
- ActivityCodeGenerator.cs
- LinkedDataMemberFieldEditor.cs
- CommonRemoteMemoryBlock.cs
- Facet.cs
- CodeNamespaceCollection.cs
- BulletedListEventArgs.cs
- PropertyCondition.cs
- Variant.cs
- AuthenticationSection.cs
- tabpagecollectioneditor.cs
- X509Extension.cs
- Classification.cs
- RTTrackingProfile.cs
- PointF.cs
- Util.cs
- CodeAttributeArgumentCollection.cs
- ChangeDirector.cs
- PowerEase.cs
- QueryRewriter.cs
- documentsequencetextpointer.cs
- SamlSecurityTokenAuthenticator.cs
- DataBinder.cs
- GifBitmapEncoder.cs
- ValidatingPropertiesEventArgs.cs
- XmlSchemaAppInfo.cs
- RegionData.cs
- ClientWindowsAuthenticationMembershipProvider.cs
- NegatedCellConstant.cs
- AssociatedControlConverter.cs
- PrefixQName.cs
- DataServiceRequestArgs.cs
- TimelineGroup.cs
- KeyInfo.cs
- DocumentViewerBase.cs
- XmlElementAttributes.cs
- MemberRelationshipService.cs
- JsonDeserializer.cs
- PingReply.cs
- UnsafeNativeMethods.cs
- AdCreatedEventArgs.cs
- WmlListAdapter.cs
- HtmlImage.cs
- Trace.cs