Code:
/ DotNET / DotNET / 8.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
- SystemUdpStatistics.cs
- GeneralTransform2DTo3D.cs
- XmlSchemaObjectTable.cs
- TextViewSelectionProcessor.cs
- OverrideMode.cs
- GridViewDeletedEventArgs.cs
- SecurityDocument.cs
- SymmetricAlgorithm.cs
- WorkflowNamespace.cs
- ServiceCredentials.cs
- HandlerBase.cs
- InputMethod.cs
- ErrorLog.cs
- ThumbAutomationPeer.cs
- OutputScopeManager.cs
- XmlNamedNodeMap.cs
- RemotingException.cs
- LongValidator.cs
- RemotingException.cs
- TextSelectionHelper.cs
- SchemaType.cs
- StylusShape.cs
- SoapElementAttribute.cs
- TrustManager.cs
- TypeSystem.cs
- RepeatBehaviorConverter.cs
- ReversePositionQuery.cs
- MyContact.cs
- ProxyWebPartConnectionCollection.cs
- sqlpipe.cs
- XAMLParseException.cs
- DateTimeConverter2.cs
- DataGridHeaderBorder.cs
- DataObjectCopyingEventArgs.cs
- GenerateHelper.cs
- ColorConverter.cs
- AffineTransform3D.cs
- FacetValueContainer.cs
- PointLightBase.cs
- InkCanvasFeedbackAdorner.cs
- SystemResourceKey.cs
- SecurityException.cs
- Regex.cs
- RadioButtonFlatAdapter.cs
- ApplicationGesture.cs
- DataTableMapping.cs
- ReaderWriterLock.cs
- LogLogRecordEnumerator.cs
- ShaderRenderModeValidation.cs
- ElementHost.cs
- RootBrowserWindow.cs
- MetaModel.cs
- WeakEventTable.cs
- dataobject.cs
- HitTestResult.cs
- ImageFormatConverter.cs
- HwndKeyboardInputProvider.cs
- ToggleButton.cs
- DirtyTextRange.cs
- XmlExceptionHelper.cs
- EndpointInstanceProvider.cs
- PkcsUtils.cs
- ServiceMemoryGates.cs
- GlobalItem.cs
- ProfileServiceManager.cs
- DataServiceHost.cs
- TableCell.cs
- SafeEventLogWriteHandle.cs
- XmlDocumentSurrogate.cs
- WorkflowTransactionService.cs
- VariableQuery.cs
- SizeF.cs
- TypeBrowser.xaml.cs
- NameValuePermission.cs
- DiscreteKeyFrames.cs
- XPathExpr.cs
- ReadOnlyHierarchicalDataSourceView.cs
- XmlCollation.cs
- UnknownBitmapDecoder.cs
- CheckBoxPopupAdapter.cs
- HttpVersion.cs
- MenuStrip.cs
- _RequestCacheProtocol.cs
- LifetimeServices.cs
- TextEditor.cs
- ChangeNode.cs
- basenumberconverter.cs
- XmlElementAttributes.cs
- UriSection.cs
- JsonWriter.cs
- PropertyValueChangedEvent.cs
- LineUtil.cs
- XPathArrayIterator.cs
- QilFactory.cs
- HwndSourceKeyboardInputSite.cs
- HtmlElementCollection.cs
- Stroke2.cs
- SchemaTableOptionalColumn.cs
- BlurBitmapEffect.cs
- DataGridViewCellStyleChangedEventArgs.cs