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
- SqlDependencyUtils.cs
- AudioDeviceOut.cs
- TransactionFlowAttribute.cs
- UniqueIdentifierService.cs
- Int16KeyFrameCollection.cs
- CodeTypeReferenceSerializer.cs
- TimelineGroup.cs
- NonClientArea.cs
- BinaryObjectWriter.cs
- CreateUserWizard.cs
- GraphicsState.cs
- DataGridDesigner.cs
- PointCollection.cs
- DropSource.cs
- ProcessModuleDesigner.cs
- ScriptingRoleServiceSection.cs
- XslTransform.cs
- ToolStripComboBox.cs
- Authorization.cs
- OdbcConnection.cs
- WebServiceParameterData.cs
- GridToolTip.cs
- DataGridParentRows.cs
- HtmlInputImage.cs
- DataGridHelper.cs
- StylusPointProperty.cs
- ToolbarAUtomationPeer.cs
- BounceEase.cs
- ReachVisualSerializer.cs
- PenThreadWorker.cs
- DependentTransaction.cs
- ToolStripItemEventArgs.cs
- HtmlInputRadioButton.cs
- SvcMapFileSerializer.cs
- PrintController.cs
- ToolStripItemClickedEventArgs.cs
- SoapEnvelopeProcessingElement.cs
- ProcessHostFactoryHelper.cs
- Events.cs
- WaitForChangedResult.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- SchemaSetCompiler.cs
- PackageDigitalSignature.cs
- XPathEmptyIterator.cs
- _emptywebproxy.cs
- ListSortDescription.cs
- GradientBrush.cs
- MutexSecurity.cs
- ListViewInsertEventArgs.cs
- WebPartEditorCancelVerb.cs
- EntityProviderServices.cs
- XPathScanner.cs
- Variable.cs
- CategoryGridEntry.cs
- MetadataArtifactLoaderResource.cs
- VisualStyleTypesAndProperties.cs
- StateChangeEvent.cs
- SqlMethodCallConverter.cs
- SBCSCodePageEncoding.cs
- LinkConverter.cs
- AuthenticateEventArgs.cs
- ParentQuery.cs
- ExpanderAutomationPeer.cs
- HttpProfileBase.cs
- Fonts.cs
- ListViewAutomationPeer.cs
- TimersDescriptionAttribute.cs
- PolyLineSegmentFigureLogic.cs
- KeyBinding.cs
- ShapeTypeface.cs
- CodeParameterDeclarationExpressionCollection.cs
- MouseWheelEventArgs.cs
- CqlWriter.cs
- TextElementAutomationPeer.cs
- TextSerializer.cs
- Triplet.cs
- EntityUtil.cs
- GeometryModel3D.cs
- MultilineStringConverter.cs
- HtmlTableRowCollection.cs
- AQNBuilder.cs
- ListViewGroupConverter.cs
- DecimalConstantAttribute.cs
- AppearanceEditorPart.cs
- EnvelopeVersion.cs
- MasterPageCodeDomTreeGenerator.cs
- DataControlImageButton.cs
- WindowsTokenRoleProvider.cs
- SequenceFullException.cs
- Mapping.cs
- KeyGestureConverter.cs
- HttpHeaderCollection.cs
- DbTransaction.cs
- SecurityManager.cs
- RuntimeHelpers.cs
- SoapObjectInfo.cs
- FormViewModeEventArgs.cs
- TraceUtility.cs
- util.cs
- COM2PropertyDescriptor.cs