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
- SecurityIdentifierConverter.cs
- ExtensionDataObject.cs
- embossbitmapeffect.cs
- IImplicitResourceProvider.cs
- ThreadStaticAttribute.cs
- ContactManager.cs
- SBCSCodePageEncoding.cs
- COSERVERINFO.cs
- MenuStrip.cs
- WebBrowserPermission.cs
- CancellationToken.cs
- DBCommand.cs
- ExpressionEvaluator.cs
- CodeChecksumPragma.cs
- Font.cs
- InvokeDelegate.cs
- FileEnumerator.cs
- X509Utils.cs
- TypeUtil.cs
- SqlProfileProvider.cs
- BamlRecordReader.cs
- _CommandStream.cs
- DynamicFilter.cs
- RegexNode.cs
- ServiceMemoryGates.cs
- WCFModelStrings.Designer.cs
- ControlFilterExpression.cs
- IntegerValidator.cs
- OleAutBinder.cs
- XamlPointCollectionSerializer.cs
- NameValuePermission.cs
- MenuEventArgs.cs
- httpstaticobjectscollection.cs
- FirewallWrapper.cs
- BooleanConverter.cs
- CaseInsensitiveHashCodeProvider.cs
- SplineKeyFrames.cs
- ByteRangeDownloader.cs
- ObjectListField.cs
- SafeFileMappingHandle.cs
- IgnorePropertiesAttribute.cs
- Profiler.cs
- TemplateBuilder.cs
- Sequence.cs
- SkewTransform.cs
- LockedBorderGlyph.cs
- PointLight.cs
- LoadItemsEventArgs.cs
- OleDbStruct.cs
- CharEnumerator.cs
- MetaForeignKeyColumn.cs
- CodeNamespaceCollection.cs
- XmlAnyElementAttribute.cs
- SqlClientMetaDataCollectionNames.cs
- x509utils.cs
- DesignBindingPicker.cs
- Object.cs
- CharacterHit.cs
- StorageAssociationSetMapping.cs
- PathFigure.cs
- StorageRoot.cs
- FusionWrap.cs
- SecurityKeyUsage.cs
- StrokeNodeOperations.cs
- DrawingAttributeSerializer.cs
- DbBuffer.cs
- CompilerResults.cs
- WhitespaceSignificantCollectionAttribute.cs
- Pens.cs
- PeerUnsafeNativeCryptMethods.cs
- TextTreeExtractElementUndoUnit.cs
- SqlInternalConnection.cs
- ApplyTemplatesAction.cs
- dbenumerator.cs
- ImageDrawing.cs
- ItemCollection.cs
- MetadataSource.cs
- SQLResource.cs
- StorageMappingFragment.cs
- ConfigurationStrings.cs
- OdbcRowUpdatingEvent.cs
- BinaryMethodMessage.cs
- BlockingCollection.cs
- SecurityTokenProvider.cs
- Nullable.cs
- XpsPackagingException.cs
- Operator.cs
- RepeaterItem.cs
- TextCompositionEventArgs.cs
- XmlWrappingReader.cs
- ClipboardData.cs
- PointAnimationUsingKeyFrames.cs
- BitmapEffectDrawing.cs
- isolationinterop.cs
- CollectionsUtil.cs
- HandlerMappingMemo.cs
- List.cs
- EntityDataSourceContextCreatingEventArgs.cs
- Triplet.cs
- DesignerTransaction.cs