Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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; } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DesignerAttribute.cs
- CellQuery.cs
- HtmlShim.cs
- EdmFunctionAttribute.cs
- IPHostEntry.cs
- FilteredReadOnlyMetadataCollection.cs
- typedescriptorpermission.cs
- TreeView.cs
- PackWebRequest.cs
- CharEnumerator.cs
- InputBuffer.cs
- InputQueue.cs
- EmptyControlCollection.cs
- ApplicationSettingsBase.cs
- FilterRepeater.cs
- RenamedEventArgs.cs
- QuaternionConverter.cs
- EtwTrace.cs
- GridPattern.cs
- TrustManagerMoreInformation.cs
- LicenseException.cs
- LogoValidationException.cs
- ArgumentsParser.cs
- ImmutableCollection.cs
- CfgRule.cs
- PropertyReferenceSerializer.cs
- ReachDocumentReferenceCollectionSerializer.cs
- XmlValidatingReader.cs
- CustomCredentialPolicy.cs
- SafeNativeMemoryHandle.cs
- ToolStripLabel.cs
- ADMembershipUser.cs
- EnumerableCollectionView.cs
- TrustManager.cs
- MachineKeySection.cs
- ChangePassword.cs
- Error.cs
- followingquery.cs
- ParameterCollectionEditor.cs
- DetailsViewPagerRow.cs
- ForceCopyBuildProvider.cs
- ListBox.cs
- OdbcParameterCollection.cs
- DataControlCommands.cs
- WinEventHandler.cs
- SerializationAttributes.cs
- CustomError.cs
- ShutDownListener.cs
- ScriptingProfileServiceSection.cs
- Vector3DValueSerializer.cs
- _TimerThread.cs
- SqlCacheDependencyDatabase.cs
- AssociationTypeEmitter.cs
- TextDecorationCollection.cs
- CompositeFontParser.cs
- Decoder.cs
- Literal.cs
- SynchronizedDispatch.cs
- PhysicalFontFamily.cs
- ConsoleKeyInfo.cs
- QilParameter.cs
- SequentialOutput.cs
- DetailsViewRow.cs
- ReflectEventDescriptor.cs
- Crc32Helper.cs
- PagePropertiesChangingEventArgs.cs
- UidPropertyAttribute.cs
- NonValidatingSecurityTokenAuthenticator.cs
- FixedDocumentSequencePaginator.cs
- FormViewUpdatedEventArgs.cs
- InvalidWMPVersionException.cs
- OptimisticConcurrencyException.cs
- BitmapData.cs
- Update.cs
- OdbcConnectionString.cs
- DataGridViewTextBoxEditingControl.cs
- ProcessHostServerConfig.cs
- XmlConverter.cs
- ListView.cs
- ScriptMethodAttribute.cs
- ManipulationPivot.cs
- SchemaEntity.cs
- Mouse.cs
- smtppermission.cs
- DispatcherOperation.cs
- WindowsTokenRoleProvider.cs
- CachedTypeface.cs
- ElementMarkupObject.cs
- SqlSelectClauseBuilder.cs
- OrderToken.cs
- StructuredTypeEmitter.cs
- ScalarType.cs
- Ipv6Element.cs
- TextBoxLine.cs
- BindStream.cs
- WebPartEditorOkVerb.cs
- HtmlContainerControl.cs
- Paragraph.cs
- HtmlObjectListAdapter.cs
- WsatConfiguration.cs