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
- DesignOnlyAttribute.cs
- CompilationUnit.cs
- TextEditorSelection.cs
- MetafileEditor.cs
- TargetControlTypeCache.cs
- Handle.cs
- QuaternionAnimation.cs
- TransformDescriptor.cs
- DbExpressionVisitor_TResultType.cs
- CallbackValidatorAttribute.cs
- MemberDescriptor.cs
- CustomAttributeSerializer.cs
- CompositeFontParser.cs
- TaskFormBase.cs
- DiffuseMaterial.cs
- XmlSchemaSubstitutionGroup.cs
- XMLUtil.cs
- SessionIDManager.cs
- ScrollableControl.cs
- CancelRequestedQuery.cs
- Rijndael.cs
- XmlSchemaAnyAttribute.cs
- HwndStylusInputProvider.cs
- WebPartEditorOkVerb.cs
- XmlSchemaInfo.cs
- TypeProvider.cs
- MetadataPropertyCollection.cs
- ProxyWebPartManager.cs
- View.cs
- BaseParagraph.cs
- GridViewRow.cs
- SafeHGlobalHandleCritical.cs
- Msmq4SubqueuePoisonHandler.cs
- TimeSpanFormat.cs
- TraceAsyncResult.cs
- DrawingContextDrawingContextWalker.cs
- Binding.cs
- SimpleMailWebEventProvider.cs
- ObjectSecurity.cs
- SharedStatics.cs
- SoapProtocolReflector.cs
- UnaryNode.cs
- AttributedMetaModel.cs
- RuntimeResourceSet.cs
- PerformanceCounterCategory.cs
- IProvider.cs
- CompilerParameters.cs
- SQLDecimalStorage.cs
- ClientEventManager.cs
- BuildResultCache.cs
- Debug.cs
- DataServiceQueryProvider.cs
- ProfileBuildProvider.cs
- LicenseContext.cs
- _TimerThread.cs
- ListViewItem.cs
- _OSSOCK.cs
- localization.cs
- NativeWindow.cs
- GlyphTypeface.cs
- Region.cs
- Effect.cs
- WinHttpWebProxyFinder.cs
- ToolStripDropDownMenu.cs
- TableDetailsRow.cs
- MediaSystem.cs
- FormViewPagerRow.cs
- RadioButtonPopupAdapter.cs
- TextTreeTextElementNode.cs
- FactoryRecord.cs
- MatrixAnimationBase.cs
- SourceFilter.cs
- Errors.cs
- CollectionEditorDialog.cs
- SchemaElementLookUpTable.cs
- AspNetSynchronizationContext.cs
- EventNotify.cs
- ProcessModuleDesigner.cs
- dbenumerator.cs
- dsa.cs
- ChameleonKey.cs
- TreeBuilderXamlTranslator.cs
- XmlIncludeAttribute.cs
- BinaryUtilClasses.cs
- DelegatedStream.cs
- SplitterCancelEvent.cs
- DynamicPropertyReader.cs
- CryptoKeySecurity.cs
- Table.cs
- InputBinding.cs
- StateMachineExecutionState.cs
- CombinedGeometry.cs
- MimeTypeMapper.cs
- DataGridLength.cs
- DataErrorValidationRule.cs
- AnnotationElement.cs
- DesignerLinkAdapter.cs
- BamlLocalizableResourceKey.cs
- Preprocessor.cs
- ColumnCollectionEditor.cs