Code:
/ 4.0 / 4.0 / untmp / 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. /// ///
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PointUtil.cs
- LoginName.cs
- HtmlInputImage.cs
- FormatVersion.cs
- mongolianshape.cs
- XmlSchemaAnyAttribute.cs
- AnnotationResourceCollection.cs
- CodeLabeledStatement.cs
- BadImageFormatException.cs
- BaseAddressElement.cs
- FileDialog.cs
- XmlAttributeCollection.cs
- GridViewRowEventArgs.cs
- StringWriter.cs
- ReceiveCompletedEventArgs.cs
- Calendar.cs
- PhoneCallDesigner.cs
- SmtpNtlmAuthenticationModule.cs
- BamlLocalizabilityResolver.cs
- MailBnfHelper.cs
- IntegerValidator.cs
- ViewSimplifier.cs
- BamlWriter.cs
- ActiveXHelper.cs
- ZipIOBlockManager.cs
- NegationPusher.cs
- DoubleCollectionConverter.cs
- DispatcherProcessingDisabled.cs
- SessionParameter.cs
- HtmlInputText.cs
- XmlILIndex.cs
- DataRowCollection.cs
- RotateTransform.cs
- ThreadInterruptedException.cs
- DataServiceExpressionVisitor.cs
- DataGridViewCellCancelEventArgs.cs
- EventLogPermissionAttribute.cs
- PropertyKey.cs
- GorillaCodec.cs
- ErrorProvider.cs
- ObjectQueryExecutionPlan.cs
- TableParaClient.cs
- QuaternionConverter.cs
- SqlDataSourceRefreshSchemaForm.cs
- VisualCollection.cs
- DrawTreeNodeEventArgs.cs
- PlainXmlDeserializer.cs
- StretchValidation.cs
- TimeZoneNotFoundException.cs
- QueuePathEditor.cs
- _WebProxyDataBuilder.cs
- ApplicationSecurityManager.cs
- RijndaelManaged.cs
- CaseExpr.cs
- Int64.cs
- SoapReflector.cs
- OracleConnectionFactory.cs
- ObjectParameter.cs
- RelOps.cs
- ParseElement.cs
- BamlLocalizationDictionary.cs
- CriticalFileToken.cs
- HashCodeCombiner.cs
- ToolStripArrowRenderEventArgs.cs
- PropertyItemInternal.cs
- ExpressionVisitorHelpers.cs
- IntersectQueryOperator.cs
- EncodingTable.cs
- ActivityTypeCodeDomSerializer.cs
- IdentitySection.cs
- SchemaImporterExtensionElementCollection.cs
- ClientScriptManagerWrapper.cs
- ToolbarAUtomationPeer.cs
- RIPEMD160.cs
- TagNameToTypeMapper.cs
- IERequestCache.cs
- _FtpControlStream.cs
- Oci.cs
- ButtonBaseAdapter.cs
- glyphs.cs
- InputLanguageSource.cs
- VersionedStream.cs
- EntityStoreSchemaGenerator.cs
- DataListItemEventArgs.cs
- Literal.cs
- SharedDp.cs
- NativeMethods.cs
- OleDbRowUpdatedEvent.cs
- ChangePassword.cs
- RepeaterItemEventArgs.cs
- ObjectReferenceStack.cs
- DateTimePickerDesigner.cs
- keycontainerpermission.cs
- ResXResourceWriter.cs
- XmlSchemaGroup.cs
- ComboBoxRenderer.cs
- KoreanCalendar.cs
- ColorContextHelper.cs
- RegexCapture.cs
- ECDiffieHellmanCngPublicKey.cs