Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / Design / Serialization / DesignerSerializerAttribute.cs / 1305376 / 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ ///// 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. /// ///// 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; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007./// 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
- UriTemplateTableMatchCandidate.cs
- SecurityKeyType.cs
- RadioButtonBaseAdapter.cs
- EventLogger.cs
- TextBoxRenderer.cs
- SortAction.cs
- Vector3D.cs
- ChildrenQuery.cs
- FileStream.cs
- GridViewDeletedEventArgs.cs
- QilGeneratorEnv.cs
- ProcessStartInfo.cs
- MouseActionValueSerializer.cs
- DataGridViewLinkColumn.cs
- TextParentUndoUnit.cs
- StrokeSerializer.cs
- MobileTemplatedControlDesigner.cs
- URLAttribute.cs
- FirstMatchCodeGroup.cs
- PeerToPeerException.cs
- ItemChangedEventArgs.cs
- Component.cs
- GridViewSortEventArgs.cs
- CreateUserWizardStep.cs
- DataObjectPastingEventArgs.cs
- XmlnsCache.cs
- DropShadowEffect.cs
- AxisAngleRotation3D.cs
- SettingsProviderCollection.cs
- TextBoxAutomationPeer.cs
- PtsCache.cs
- OleDbConnectionInternal.cs
- Missing.cs
- Win32Native.cs
- AppDomainProtocolHandler.cs
- EventBuilder.cs
- XPathSingletonIterator.cs
- SHA1Managed.cs
- ReadOnlyCollectionBase.cs
- TextRangeEdit.cs
- ScrollableControl.cs
- DoubleAnimationUsingKeyFrames.cs
- TypeDescriptionProviderAttribute.cs
- ListItemViewControl.cs
- BinaryNegotiation.cs
- AppSettingsExpressionEditor.cs
- BaseProcessor.cs
- PagerSettings.cs
- MarshalByRefObject.cs
- IdnMapping.cs
- LinqDataSourceUpdateEventArgs.cs
- DesignerHost.cs
- RetrieveVirtualItemEventArgs.cs
- X500Name.cs
- CreatingCookieEventArgs.cs
- ReadOnlyDataSource.cs
- DashStyle.cs
- Assert.cs
- HttpFileCollection.cs
- MetafileHeaderWmf.cs
- Behavior.cs
- UnwrappedTypesXmlSerializerManager.cs
- DataGridViewColumnConverter.cs
- Stylesheet.cs
- OperationAbortedException.cs
- InkCanvasSelection.cs
- SchemaElement.cs
- CacheVirtualItemsEvent.cs
- BrowserDefinitionCollection.cs
- ArgumentNullException.cs
- TextChange.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- EventNotify.cs
- CertificateReferenceElement.cs
- EntityDataSourceDesigner.cs
- NullableConverter.cs
- nulltextcontainer.cs
- ManagedIStream.cs
- WebSysDefaultValueAttribute.cs
- RecognizerStateChangedEventArgs.cs
- EditorZone.cs
- EventLogStatus.cs
- _NestedMultipleAsyncResult.cs
- BehaviorEditorPart.cs
- MachineSettingsSection.cs
- TypedElement.cs
- SequentialWorkflowRootDesigner.cs
- WeakReadOnlyCollection.cs
- FormViewActionList.cs
- UriExt.cs
- HandlerElementCollection.cs
- PerformanceCounterPermission.cs
- ReaderWriterLockWrapper.cs
- UnsafeNativeMethods.cs
- ClientUrlResolverWrapper.cs
- NativeMethods.cs
- BaseUriHelper.cs
- OverrideMode.cs
- ParameterToken.cs
- KnownBoxes.cs