Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- ImageSource.cs
- TabletDevice.cs
- StrongNameIdentityPermission.cs
- EntityDataSourceDataSelectionPanel.cs
- BuildManager.cs
- Opcode.cs
- DatePickerDateValidationErrorEventArgs.cs
- Converter.cs
- TextSyndicationContentKindHelper.cs
- OleDbTransaction.cs
- PackageProperties.cs
- TextEncodedRawTextWriter.cs
- TextWriterEngine.cs
- RepeaterItem.cs
- SynchronizedKeyedCollection.cs
- DataGridViewCellConverter.cs
- WS2007FederationHttpBinding.cs
- ReachDocumentReferenceCollectionSerializer.cs
- pingexception.cs
- InkCanvasSelectionAdorner.cs
- DataSourceSelectArguments.cs
- XmlIgnoreAttribute.cs
- SmiEventSink_Default.cs
- Variable.cs
- BufferedStream.cs
- COM2IDispatchConverter.cs
- SqlCharStream.cs
- RawMouseInputReport.cs
- DataKeyArray.cs
- AssociatedControlConverter.cs
- XmlSchemaExporter.cs
- SHA1CryptoServiceProvider.cs
- CanonicalFontFamilyReference.cs
- ApplicationInfo.cs
- ClientSession.cs
- XmlSerializerFactory.cs
- ObjectConverter.cs
- UIElementParaClient.cs
- RouteItem.cs
- BufferCache.cs
- Menu.cs
- TimelineGroup.cs
- LocalizableAttribute.cs
- ProviderIncompatibleException.cs
- DoubleLinkListEnumerator.cs
- BrushMappingModeValidation.cs
- ElementUtil.cs
- Listbox.cs
- LayoutEngine.cs
- LinqDataSourceContextEventArgs.cs
- RefExpr.cs
- EntityStoreSchemaGenerator.cs
- CodeAccessPermission.cs
- MouseWheelEventArgs.cs
- OleDbRowUpdatingEvent.cs
- TableLayoutStyle.cs
- PTUtility.cs
- XamlGridLengthSerializer.cs
- SafeCryptContextHandle.cs
- MessageBox.cs
- ListBoxDesigner.cs
- NetNamedPipeSecurityElement.cs
- PackageProperties.cs
- ValidationErrorCollection.cs
- TextServicesCompartment.cs
- ErasingStroke.cs
- BigInt.cs
- UIElement.cs
- XmlEntityReference.cs
- StringKeyFrameCollection.cs
- LambdaCompiler.Expressions.cs
- ProgressBarAutomationPeer.cs
- precedingquery.cs
- TextBoxRenderer.cs
- InternalMappingException.cs
- VarRemapper.cs
- OracleConnectionString.cs
- DependencySource.cs
- Run.cs
- KernelTypeValidation.cs
- StrokeCollectionConverter.cs
- SafeEventLogWriteHandle.cs
- SapiRecognizer.cs
- SchemaNames.cs
- VirtualizingStackPanel.cs
- COM2PropertyDescriptor.cs
- AppSecurityManager.cs
- HtmlGenericControl.cs
- AsyncWaitHandle.cs
- CompiledQueryCacheEntry.cs
- UnsafeNativeMethodsMilCoreApi.cs
- DataColumnPropertyDescriptor.cs
- FileSystemWatcher.cs
- WeakReferenceList.cs
- VerificationAttribute.cs
- ScrollProperties.cs
- HostedImpersonationContext.cs
- SmtpCommands.cs
- TransformerTypeCollection.cs
- FontFamily.cs