Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / ComponentModel / Design / Serialization / DesignerSerializerAttribute.cs / 1 / DesignerSerializerAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.ComponentModel.Design.Serialization { using System.Security.Permissions; ////// This attribute can be placed on a class to indicate what serialization /// object should be used to serialize the class at design time. /// [AttributeUsage(AttributeTargets.Class | AttributeTargets.Interface, AllowMultiple = true, Inherited = true)] public sealed class DesignerSerializerAttribute : Attribute { private string serializerTypeName; private string serializerBaseTypeName; private string typeId; ////// Creates a new designer serialization attribute. /// public DesignerSerializerAttribute(Type serializerType, Type baseSerializerType) { this.serializerTypeName = serializerType.AssemblyQualifiedName; this.serializerBaseTypeName = baseSerializerType.AssemblyQualifiedName; } ////// Creates a new designer serialization attribute. /// public DesignerSerializerAttribute(string serializerTypeName, Type baseSerializerType) { this.serializerTypeName = serializerTypeName; this.serializerBaseTypeName = baseSerializerType.AssemblyQualifiedName; } ////// Creates a new designer serialization attribute. /// public DesignerSerializerAttribute(string serializerTypeName, string baseSerializerTypeName) { this.serializerTypeName = serializerTypeName; this.serializerBaseTypeName = baseSerializerTypeName; } ////// Retrieves the fully qualified type name of the serializer. /// public string SerializerTypeName { get { return serializerTypeName; } } ////// Retrieves the fully qualified type name of the serializer base type. /// public string SerializerBaseTypeName { get { return serializerBaseTypeName; } } ////// /// public override object TypeId { get { if (typeId == null) { string baseType = serializerBaseTypeName; int comma = baseType.IndexOf(','); if (comma != -1) { baseType = baseType.Substring(0, comma); } typeId = GetType().FullName + baseType; } return typeId; } } } }/// This defines a unique ID for this attribute type. It is used /// by filtering algorithms to identify two attributes that are /// the same type. For most attributes, this just returns the /// Type instance for the attribute. EditorAttribute overrides /// this to include the type of the editor base type. /// ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XPathPatternBuilder.cs
- ServicePoint.cs
- PropertyEmitter.cs
- DiagnosticTraceRecords.cs
- ProbeMatchesCD1.cs
- DynamicResourceExtension.cs
- ContentType.cs
- TextBoxAutoCompleteSourceConverter.cs
- WorkflowPageSetupDialog.cs
- printdlgexmarshaler.cs
- TextElementAutomationPeer.cs
- CryptoKeySecurity.cs
- ConstantExpression.cs
- XmlAttributes.cs
- XmlChildEnumerator.cs
- uribuilder.cs
- AppDomainUnloadedException.cs
- TextAdaptor.cs
- SqlConnectionHelper.cs
- RegexGroup.cs
- FileDetails.cs
- GregorianCalendar.cs
- ToolStripControlHost.cs
- SqlUdtInfo.cs
- ProxyManager.cs
- XhtmlBasicPanelAdapter.cs
- SiteMapDataSourceView.cs
- ControlDesigner.cs
- Trace.cs
- WinEventTracker.cs
- FontFamily.cs
- EdgeProfileValidation.cs
- XmlSerializer.cs
- AutomationEvent.cs
- CommentEmitter.cs
- RedirectionProxy.cs
- RIPEMD160Managed.cs
- Transform3D.cs
- HttpProcessUtility.cs
- RoleManagerModule.cs
- Timeline.cs
- HandlerBase.cs
- DataExchangeServiceBinder.cs
- XsdBuilder.cs
- WSFederationHttpBindingElement.cs
- PassportIdentity.cs
- SiteMapNodeCollection.cs
- RuntimeConfigLKG.cs
- Exceptions.cs
- SoundPlayer.cs
- Transform3D.cs
- MetadataHelper.cs
- DictionaryGlobals.cs
- DataSourceExpression.cs
- XmlILModule.cs
- Statements.cs
- dsa.cs
- XhtmlBasicTextBoxAdapter.cs
- HtmlInputFile.cs
- BaseValidatorDesigner.cs
- SchemaCollectionPreprocessor.cs
- ExceptionHelpers.cs
- BasicCommandTreeVisitor.cs
- DelegatingTypeDescriptionProvider.cs
- OleDbConnectionFactory.cs
- SlipBehavior.cs
- CommandField.cs
- SqlCacheDependencyDatabase.cs
- DataGridViewButtonColumn.cs
- UIElementParaClient.cs
- DrawingGroupDrawingContext.cs
- DispatchWrapper.cs
- CrossSiteScriptingValidation.cs
- Int32AnimationUsingKeyFrames.cs
- SafeSerializationManager.cs
- TypeElementCollection.cs
- StructureChangedEventArgs.cs
- SqlDataSourceView.cs
- Math.cs
- DbConnectionInternal.cs
- ExceptionHelpers.cs
- SetterTriggerConditionValueConverter.cs
- MarginCollapsingState.cs
- Geometry.cs
- AdornerLayer.cs
- ListBindingConverter.cs
- CustomPopupPlacement.cs
- ImplicitInputBrush.cs
- RegexWriter.cs
- HyperLinkField.cs
- HwndHost.cs
- AncestorChangedEventArgs.cs
- RSAProtectedConfigurationProvider.cs
- EmbeddedMailObjectsCollection.cs
- ColorConvertedBitmap.cs
- SQLGuid.cs
- NegationPusher.cs
- Wildcard.cs
- AsyncOperation.cs
- Selector.cs