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
- DecoderReplacementFallback.cs
- SchemaTypeEmitter.cs
- TextBoxDesigner.cs
- PhysicalOps.cs
- SecurityContextCookieSerializer.cs
- Hash.cs
- GatewayIPAddressInformationCollection.cs
- StructuredTypeInfo.cs
- Tile.cs
- TextEmbeddedObject.cs
- Point3DCollectionConverter.cs
- ServiceHttpHandlerFactory.cs
- OutputCacheSettingsSection.cs
- NotSupportedException.cs
- CultureMapper.cs
- SrgsOneOf.cs
- FileDialog.cs
- FrameworkRichTextComposition.cs
- ParallelTimeline.cs
- DbTypeMap.cs
- FontSourceCollection.cs
- ObjectDataSourceEventArgs.cs
- WindowsSspiNegotiation.cs
- EntityObject.cs
- EntityTypeBase.cs
- TextSelection.cs
- PartialCachingAttribute.cs
- UnsafeNativeMethods.cs
- SoapExtensionReflector.cs
- IntSecurity.cs
- EmulateRecognizeCompletedEventArgs.cs
- SectionInput.cs
- Rectangle.cs
- SmiEventSink_DeferedProcessing.cs
- Win32KeyboardDevice.cs
- OptimalBreakSession.cs
- HtmlControl.cs
- DataGridToolTip.cs
- RangeContentEnumerator.cs
- FormatterConverter.cs
- LayoutDump.cs
- BulletedListEventArgs.cs
- CoreSwitches.cs
- DataGridViewCellValidatingEventArgs.cs
- TextOutput.cs
- CacheVirtualItemsEvent.cs
- CodeDOMUtility.cs
- MediaPlayerState.cs
- PointHitTestResult.cs
- RuntimeVariableList.cs
- EpmContentDeSerializerBase.cs
- FormatVersion.cs
- NavigatorOutput.cs
- AsnEncodedData.cs
- CredentialCache.cs
- BitmapSourceSafeMILHandle.cs
- HWStack.cs
- PropertyEmitter.cs
- StaticExtension.cs
- StylusPointProperty.cs
- QilVisitor.cs
- WebPartZoneBase.cs
- OleDbReferenceCollection.cs
- Opcode.cs
- InternalSafeNativeMethods.cs
- TextMetrics.cs
- XmlCharacterData.cs
- OleDbEnumerator.cs
- xmlsaver.cs
- COM2TypeInfoProcessor.cs
- TypedTableBase.cs
- ContainerActivationHelper.cs
- PropertyRef.cs
- _StreamFramer.cs
- DataGridViewComponentPropertyGridSite.cs
- SetMemberBinder.cs
- WpfXamlType.cs
- RuntimeEnvironment.cs
- XsltCompileContext.cs
- BufferedReadStream.cs
- SafeLibraryHandle.cs
- Stopwatch.cs
- BaseConfigurationRecord.cs
- InstanceStoreQueryResult.cs
- PeerToPeerException.cs
- ReversePositionQuery.cs
- EventDescriptor.cs
- ProcessHostServerConfig.cs
- TemplateControlBuildProvider.cs
- MemoryStream.cs
- HttpCacheParams.cs
- InvariantComparer.cs
- RemotingConfigParser.cs
- TableNameAttribute.cs
- DbConnectionFactory.cs
- TextParaLineResult.cs
- ICollection.cs
- QueryStatement.cs
- XmlSchemaSequence.cs
- StrongNameKeyPair.cs