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
- BaseInfoTable.cs
- ConditionBrowserDialog.cs
- NativeObjectSecurity.cs
- ViewKeyConstraint.cs
- AnimationException.cs
- XmlSchemaObjectTable.cs
- SamlConditions.cs
- FontDriver.cs
- LicenseException.cs
- WizardPanel.cs
- HttpChannelHelpers.cs
- ImageCodecInfo.cs
- GB18030Encoding.cs
- WebPartTracker.cs
- PerfCounters.cs
- StickyNoteAnnotations.cs
- SelectionRangeConverter.cs
- ErrorTableItemStyle.cs
- IntegerValidator.cs
- httpapplicationstate.cs
- MsdtcWrapper.cs
- DataGridViewToolTip.cs
- Attributes.cs
- AttributeQuery.cs
- OuterGlowBitmapEffect.cs
- DocComment.cs
- ObjectManager.cs
- XmlSchemaType.cs
- XmlSchemaSubstitutionGroup.cs
- MeshGeometry3D.cs
- ComponentRenameEvent.cs
- XamlPointCollectionSerializer.cs
- CaretElement.cs
- GenericPrincipal.cs
- KoreanCalendar.cs
- TypedElement.cs
- TextSimpleMarkerProperties.cs
- XmlBinaryWriter.cs
- PersonalizationStateQuery.cs
- RelOps.cs
- EventPrivateKey.cs
- Timeline.cs
- Connection.cs
- PolicyException.cs
- JsonByteArrayDataContract.cs
- XmlConverter.cs
- PublisherMembershipCondition.cs
- CheckBox.cs
- figurelengthconverter.cs
- ToolStripPanel.cs
- PointLightBase.cs
- PartitionResolver.cs
- Interop.cs
- DocumentViewerBase.cs
- RegisteredHiddenField.cs
- ClientSettingsStore.cs
- IISUnsafeMethods.cs
- TraceHandler.cs
- FlowDocumentScrollViewer.cs
- grammarelement.cs
- XmlTextAttribute.cs
- FileDataSourceCache.cs
- SqlCommandAsyncResult.cs
- DataSysAttribute.cs
- DetailsViewInsertEventArgs.cs
- PropertyCollection.cs
- FaultBookmark.cs
- ContentTypeSettingClientMessageFormatter.cs
- DecoderBestFitFallback.cs
- SyntaxCheck.cs
- CodeNamespaceCollection.cs
- unsafenativemethodstextservices.cs
- ReferentialConstraint.cs
- ReadWriteSpinLock.cs
- NumberFunctions.cs
- Empty.cs
- pingexception.cs
- FormatConvertedBitmap.cs
- Relationship.cs
- UpdateManifestForBrowserApplication.cs
- HttpCacheVary.cs
- ThreadStateException.cs
- PropertyPathConverter.cs
- OpCellTreeNode.cs
- HttpDebugHandler.cs
- WinFormsComponentEditor.cs
- Msec.cs
- ControlCollection.cs
- ReferentialConstraint.cs
- FormViewPagerRow.cs
- DbMetaDataColumnNames.cs
- ModelPropertyImpl.cs
- FileDialog_Vista_Interop.cs
- ProtocolsSection.cs
- PointAnimationClockResource.cs
- XmlMapping.cs
- HttpResponse.cs
- JapaneseLunisolarCalendar.cs
- Compiler.cs
- OdbcConnectionPoolProviderInfo.cs