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
- ArglessEventHandlerProxy.cs
- ForceCopyBuildProvider.cs
- AttributeSetAction.cs
- RoleGroupCollection.cs
- JulianCalendar.cs
- ResolveResponse.cs
- DataRowComparer.cs
- ScopelessEnumAttribute.cs
- XmlSecureResolver.cs
- GlobalAclOperationRequirement.cs
- NamespaceInfo.cs
- DBSqlParserColumn.cs
- FontDifferentiator.cs
- Statements.cs
- SafeEventLogReadHandle.cs
- ThreadExceptionEvent.cs
- PlaceHolder.cs
- ObjectRef.cs
- SqlHelper.cs
- ScopedKnownTypes.cs
- MulticastDelegate.cs
- GeneralTransform2DTo3DTo2D.cs
- AgileSafeNativeMemoryHandle.cs
- ValidateNames.cs
- IDispatchConstantAttribute.cs
- AppDomainManager.cs
- SoapException.cs
- ValueExpressions.cs
- MetadataCacheItem.cs
- SecurityTokenAuthenticator.cs
- DummyDataSource.cs
- ProcessHostConfigUtils.cs
- UInt32Converter.cs
- SymLanguageVendor.cs
- XmlSchemaAttribute.cs
- DesignerForm.cs
- OperatingSystemVersionCheck.cs
- CqlLexer.cs
- PageTheme.cs
- TraceRecord.cs
- UIAgentAsyncBeginRequest.cs
- ObjectDataSourceEventArgs.cs
- EntityProviderServices.cs
- RowToParametersTransformer.cs
- TextRunCacheImp.cs
- DataGridViewRowConverter.cs
- ClonableStack.cs
- XslVisitor.cs
- ServiceContractViewControl.cs
- DocumentOrderQuery.cs
- PreloadedPackages.cs
- SmtpAuthenticationManager.cs
- MenuAutomationPeer.cs
- CapabilitiesState.cs
- DataServiceException.cs
- SpellerError.cs
- TextMessageEncoder.cs
- StopStoryboard.cs
- ReflectionTypeLoadException.cs
- CryptoHelper.cs
- TemplatedAdorner.cs
- LicenseProviderAttribute.cs
- DataSourceUtil.cs
- XmlText.cs
- DebugHandleTracker.cs
- WebPart.cs
- TreeViewItemAutomationPeer.cs
- PackageProperties.cs
- XamlClipboardData.cs
- SelectedGridItemChangedEvent.cs
- ServiceParser.cs
- SortDescription.cs
- InternalsVisibleToAttribute.cs
- DoubleAnimationClockResource.cs
- WebGetAttribute.cs
- Canvas.cs
- cookie.cs
- InstanceStoreQueryResult.cs
- RepeatInfo.cs
- RegisteredArrayDeclaration.cs
- Viewport3DAutomationPeer.cs
- MissingManifestResourceException.cs
- SystemIPInterfaceProperties.cs
- UserControlAutomationPeer.cs
- PathSegment.cs
- PasswordRecovery.cs
- OracleCommandBuilder.cs
- ReferenceEqualityComparer.cs
- Soap12ProtocolReflector.cs
- MissingMethodException.cs
- WebPartRestoreVerb.cs
- _NetworkingPerfCounters.cs
- ControlAdapter.cs
- FormsAuthenticationModule.cs
- MimeParameter.cs
- RuleRefElement.cs
- ApplyTemplatesAction.cs
- DocumentSequence.cs
- ObjectDataSourceMethodEventArgs.cs
- GacUtil.cs