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 / InstallerTypeAttribute.cs / 1 / InstallerTypeAttribute.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ // SECREVIEW: Remove this attribute once bug#411889 is fixed. [assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2113:SecureLateBindingMethods", Scope="member", Target="System.ComponentModel.InstallerTypeAttribute.get_InstallerType():System.Type")] namespace System.ComponentModel { using System.Diagnostics; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.Class)] public class InstallerTypeAttribute : Attribute { string _typeName; ///Specifies the installer /// to use for a type to install components. ////// public InstallerTypeAttribute(Type installerType) { _typeName = installerType.AssemblyQualifiedName; } ///Initializes a new instance of the System.Windows.Forms.ComponentModel.InstallerTypeAttribute class. ////// public InstallerTypeAttribute(string typeName) { _typeName = typeName; } ///[To be supplied.] ////// public virtual Type InstallerType { get { return Type.GetType(_typeName); } } public override bool Equals(object obj) { if (obj == this) { return true; } InstallerTypeAttribute other = obj as InstallerTypeAttribute; return (other != null) && other._typeName == _typeName; } public override int GetHashCode() { return base.GetHashCode(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //Gets the /// type of installer associated with this attribute. ///// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /* */ // SECREVIEW: Remove this attribute once bug#411889 is fixed. [assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2113:SecureLateBindingMethods", Scope="member", Target="System.ComponentModel.InstallerTypeAttribute.get_InstallerType():System.Type")] namespace System.ComponentModel { using System.Diagnostics; using System.Security.Permissions; ////// [AttributeUsage(AttributeTargets.Class)] public class InstallerTypeAttribute : Attribute { string _typeName; ///Specifies the installer /// to use for a type to install components. ////// public InstallerTypeAttribute(Type installerType) { _typeName = installerType.AssemblyQualifiedName; } ///Initializes a new instance of the System.Windows.Forms.ComponentModel.InstallerTypeAttribute class. ////// public InstallerTypeAttribute(string typeName) { _typeName = typeName; } ///[To be supplied.] ////// public virtual Type InstallerType { get { return Type.GetType(_typeName); } } public override bool Equals(object obj) { if (obj == this) { return true; } InstallerTypeAttribute other = obj as InstallerTypeAttribute; return (other != null) && other._typeName == _typeName; } public override int GetHashCode() { return base.GetHashCode(); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.Gets the /// type of installer associated with this attribute. ///
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CustomValidator.cs
- EncryptedXml.cs
- ToolStripProgressBar.cs
- WebConfigurationHostFileChange.cs
- ProfilePropertySettingsCollection.cs
- GenericTransactionFlowAttribute.cs
- RawStylusSystemGestureInputReport.cs
- PropertyValidationContext.cs
- CLSCompliantAttribute.cs
- SqlDataReader.cs
- Base64Encoder.cs
- _KerberosClient.cs
- ReceiveContext.cs
- BooleanToVisibilityConverter.cs
- DeviceContext.cs
- WeakKeyDictionary.cs
- DescendantQuery.cs
- QilSortKey.cs
- LicenseContext.cs
- XmlReaderSettings.cs
- RotateTransform.cs
- QueryContinueDragEventArgs.cs
- KnownAssemblyEntry.cs
- ProfilePropertyNameValidator.cs
- Registry.cs
- ExceptionHandler.cs
- TypeToken.cs
- ResponseBodyWriter.cs
- AstNode.cs
- SystemResourceHost.cs
- ArglessEventHandlerProxy.cs
- OleTxTransactionInfo.cs
- DataGridTextBoxColumn.cs
- Message.cs
- Persist.cs
- TableMethodGenerator.cs
- SystemTcpStatistics.cs
- EditorReuseAttribute.cs
- WhitespaceRule.cs
- SqlDataSourceConfigureSelectPanel.cs
- ToolboxComponentsCreatedEventArgs.cs
- EntityDataSourceMemberPath.cs
- SqlAliasesReferenced.cs
- ContractNamespaceAttribute.cs
- ListComponentEditor.cs
- SoapCodeExporter.cs
- GenericIdentity.cs
- DictionaryEntry.cs
- HwndSourceParameters.cs
- Transform3DGroup.cs
- DetectEofStream.cs
- ProgressChangedEventArgs.cs
- BindingMemberInfo.cs
- ZipIOCentralDirectoryBlock.cs
- IdnMapping.cs
- Repeater.cs
- HScrollProperties.cs
- AttachmentService.cs
- MouseOverProperty.cs
- LoadedEvent.cs
- EditorPartCollection.cs
- WindowProviderWrapper.cs
- BlurBitmapEffect.cs
- LinqDataSourceContextEventArgs.cs
- SemanticValue.cs
- DataServiceRequest.cs
- XmlCustomFormatter.cs
- IgnorePropertiesAttribute.cs
- Permission.cs
- XmlReturnReader.cs
- DefaultValueAttribute.cs
- DataServiceEntityAttribute.cs
- MatrixCamera.cs
- SelectionProviderWrapper.cs
- DisplayMemberTemplateSelector.cs
- PreviewKeyDownEventArgs.cs
- UniqueContractNameValidationBehavior.cs
- DbConnectionPoolGroup.cs
- TraceLevelHelper.cs
- LicenseContext.cs
- PreservationFileWriter.cs
- ToolBarTray.cs
- DrawingContextDrawingContextWalker.cs
- SecurityDocument.cs
- RowSpanVector.cs
- AssociationSetEnd.cs
- ToolStripItemImageRenderEventArgs.cs
- HtmlTable.cs
- TypeElement.cs
- SafeViewOfFileHandle.cs
- XPathSelfQuery.cs
- Operator.cs
- XmlSubtreeReader.cs
- TextTrailingWordEllipsis.cs
- VirtualPathProvider.cs
- PeerToPeerException.cs
- PerfService.cs
- SiteMapDataSourceView.cs
- StorageConditionPropertyMapping.cs
- CacheEntry.cs