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
- DataRelation.cs
- HandlerMappingMemo.cs
- ExpressionWriter.cs
- MetadataCache.cs
- XmlMemberMapping.cs
- EdmError.cs
- UrlPath.cs
- StubHelpers.cs
- CodeMemberField.cs
- TaskExtensions.cs
- HttpFileCollection.cs
- EventToken.cs
- TypeToken.cs
- URLAttribute.cs
- ReadOnlyAttribute.cs
- EdmToObjectNamespaceMap.cs
- ServiceErrorHandler.cs
- XmlHierarchicalEnumerable.cs
- EventMap.cs
- SqlNode.cs
- GeneralTransform3D.cs
- ToolStripManager.cs
- KoreanCalendar.cs
- COAUTHIDENTITY.cs
- Rect3DConverter.cs
- ClientTarget.cs
- EdmFunction.cs
- ApplicationTrust.cs
- GenericUriParser.cs
- ReflectPropertyDescriptor.cs
- ApplyTemplatesAction.cs
- WindowsProgressbar.cs
- TextSerializer.cs
- FormatConvertedBitmap.cs
- TargetConverter.cs
- ListChunk.cs
- WebPartEditorCancelVerb.cs
- DataGridViewComboBoxCell.cs
- Column.cs
- Pkcs7Signer.cs
- StreamReader.cs
- Trace.cs
- GridViewSortEventArgs.cs
- _Semaphore.cs
- LoginUtil.cs
- SqlTypeConverter.cs
- ManipulationDevice.cs
- TextParagraph.cs
- ChannelManager.cs
- PropertyChangedEventArgs.cs
- CallbackException.cs
- AddInStore.cs
- TimelineClockCollection.cs
- DateTimePicker.cs
- ClientBuildManager.cs
- InheritanceContextChangedEventManager.cs
- IdentityHolder.cs
- ResolveInfo.cs
- ObjectConverter.cs
- HtmlSelect.cs
- userdatakeys.cs
- TextRenderer.cs
- ResourcePermissionBase.cs
- EventlogProvider.cs
- DataServiceExpressionVisitor.cs
- AutomationFocusChangedEventArgs.cs
- PlanCompilerUtil.cs
- SqlClientMetaDataCollectionNames.cs
- Decimal.cs
- Pair.cs
- SecUtil.cs
- OleCmdHelper.cs
- DataControlFieldHeaderCell.cs
- MetadataPropertyCollection.cs
- XpsLiterals.cs
- PathFigureCollection.cs
- DummyDataSource.cs
- SystemGatewayIPAddressInformation.cs
- StaticFileHandler.cs
- GeneralTransform3D.cs
- MediaContextNotificationWindow.cs
- Sentence.cs
- XDRSchema.cs
- GenericArgumentsUpdater.cs
- ArgumentDesigner.xaml.cs
- DodSequenceMerge.cs
- IssuedTokensHeader.cs
- OptimalBreakSession.cs
- LogEntryHeaderDeserializer.cs
- EntityDesignerUtils.cs
- QueryCreatedEventArgs.cs
- DataGridViewCellValueEventArgs.cs
- TaiwanCalendar.cs
- TogglePattern.cs
- SharedTcpTransportManager.cs
- NetworkInformationPermission.cs
- Accessible.cs
- WebPartConnectionsCancelEventArgs.cs
- ResourceProviderFactory.cs
- ThrowHelper.cs