Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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; } } } } // 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
- HttpPostClientProtocol.cs
- ToolStripSettings.cs
- AnnotationStore.cs
- RowParagraph.cs
- StrongNamePublicKeyBlob.cs
- ZipFileInfo.cs
- NativeMethods.cs
- FormDesigner.cs
- Exceptions.cs
- EncodingTable.cs
- dtdvalidator.cs
- FilterRepeater.cs
- UserUseLicenseDictionaryLoader.cs
- EastAsianLunisolarCalendar.cs
- SBCSCodePageEncoding.cs
- MissingManifestResourceException.cs
- NameScope.cs
- FontStretch.cs
- CatalogUtil.cs
- JavaScriptObjectDeserializer.cs
- WindowsFormsHostPropertyMap.cs
- CodeIdentifiers.cs
- TimelineClockCollection.cs
- CollectionType.cs
- NavigatorInvalidBodyAccessException.cs
- TemplateBuilder.cs
- smtppermission.cs
- SerializationStore.cs
- Rfc2898DeriveBytes.cs
- XNameTypeConverter.cs
- TraceRecord.cs
- HttpCachePolicyElement.cs
- Resources.Designer.cs
- CodeExpressionCollection.cs
- AutomationPropertyInfo.cs
- ComponentConverter.cs
- ActivityPreviewDesigner.cs
- DataServiceQuery.cs
- ProxyWebPartManagerDesigner.cs
- _NetworkingPerfCounters.cs
- BigInt.cs
- FileDialog.cs
- CustomWebEventKey.cs
- WeakRefEnumerator.cs
- AttributeQuery.cs
- TimeZone.cs
- SqlWorkflowPersistenceService.cs
- Point3DCollectionConverter.cs
- MultiView.cs
- CroppedBitmap.cs
- InternalDuplexChannelFactory.cs
- ScrollProviderWrapper.cs
- UnknownBitmapEncoder.cs
- ComponentResourceKeyConverter.cs
- HttpDebugHandler.cs
- ToolStripSplitButton.cs
- ContentOperations.cs
- ItemType.cs
- PartBasedPackageProperties.cs
- BamlLocalizabilityResolver.cs
- DataGridItemCollection.cs
- PreApplicationStartMethodAttribute.cs
- CoreSwitches.cs
- Selector.cs
- EntryWrittenEventArgs.cs
- ILGenerator.cs
- ModelItemDictionaryImpl.cs
- TimerElapsedEvenArgs.cs
- Keyboard.cs
- DefaultMemberAttribute.cs
- XmlSiteMapProvider.cs
- SetIterators.cs
- _ScatterGatherBuffers.cs
- _AuthenticationState.cs
- Events.cs
- CachedRequestParams.cs
- MonthChangedEventArgs.cs
- MoveSizeWinEventHandler.cs
- DBSqlParserColumnCollection.cs
- OleDbParameterCollection.cs
- HttpModuleCollection.cs
- GridPattern.cs
- SafeUserTokenHandle.cs
- MergeFilterQuery.cs
- QueuedDeliveryRequirementsMode.cs
- RemotingServices.cs
- BCLDebug.cs
- ContainerParagraph.cs
- FileDataSourceCache.cs
- EditCommandColumn.cs
- KeyTimeConverter.cs
- ColumnProvider.cs
- ObjectTag.cs
- _HelperAsyncResults.cs
- WinEventWrap.cs
- FormsAuthenticationEventArgs.cs
- DbConnectionPoolIdentity.cs
- SettingsBase.cs
- ProviderIncompatibleException.cs
- EncryptedReference.cs