Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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;
///
/// Specifies the installer
/// to use for a type to install components.
///
[AttributeUsage(AttributeTargets.Class)]
public class InstallerTypeAttribute : Attribute {
string _typeName;
///
/// Initializes a new instance of the System.Windows.Forms.ComponentModel.InstallerTypeAttribute class.
///
public InstallerTypeAttribute(Type installerType) {
_typeName = installerType.AssemblyQualifiedName;
}
///
/// [To be supplied.]
///
public InstallerTypeAttribute(string typeName) {
_typeName = typeName;
}
///
/// Gets the
/// type of installer associated with this attribute.
///
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.
//------------------------------------------------------------------------------
//
// 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;
///
/// Specifies the installer
/// to use for a type to install components.
///
[AttributeUsage(AttributeTargets.Class)]
public class InstallerTypeAttribute : Attribute {
string _typeName;
///
/// Initializes a new instance of the System.Windows.Forms.ComponentModel.InstallerTypeAttribute class.
///
public InstallerTypeAttribute(Type installerType) {
_typeName = installerType.AssemblyQualifiedName;
}
///
/// [To be supplied.]
///
public InstallerTypeAttribute(string typeName) {
_typeName = typeName;
}
///
/// Gets the
/// type of installer associated with this attribute.
///
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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ClaimTypeElement.cs
- ToolStripItemBehavior.cs
- ForeignKeyFactory.cs
- ContractMapping.cs
- URLAttribute.cs
- DataSourceCache.cs
- ObjectDataSourceDisposingEventArgs.cs
- JournalNavigationScope.cs
- SqlFacetAttribute.cs
- ObjectReaderCompiler.cs
- RC2.cs
- UnknownWrapper.cs
- X509SecurityToken.cs
- TextTrailingCharacterEllipsis.cs
- DesignerTextBoxAdapter.cs
- ListViewUpdatedEventArgs.cs
- WebConfigurationHostFileChange.cs
- SecurityHeader.cs
- PropertySourceInfo.cs
- XmlTypeMapping.cs
- LayoutDump.cs
- ConditionalAttribute.cs
- OutputChannel.cs
- ManifestSignedXml.cs
- ECDsa.cs
- LayoutTable.cs
- GridLengthConverter.cs
- ExceptionValidationRule.cs
- OleDbConnection.cs
- TransformProviderWrapper.cs
- WebPartVerb.cs
- ScriptingJsonSerializationSection.cs
- EmptyQuery.cs
- WindowsAuthenticationModule.cs
- CollectionBuilder.cs
- AuthenticationService.cs
- MarginsConverter.cs
- WebServiceFault.cs
- MultipleViewPattern.cs
- FactoryMaker.cs
- FunctionQuery.cs
- SelectQueryOperator.cs
- ALinqExpressionVisitor.cs
- DragDropHelper.cs
- FontFamilyValueSerializer.cs
- XmlSchemaImporter.cs
- Grid.cs
- LoadedOrUnloadedOperation.cs
- AsyncResult.cs
- SafeViewOfFileHandle.cs
- MessageQueue.cs
- ParserExtension.cs
- DynamicQueryableWrapper.cs
- DurableInstanceProvider.cs
- ToolStripPanelRenderEventArgs.cs
- DBDataPermissionAttribute.cs
- AggregateNode.cs
- OneWayBindingElement.cs
- SelectionRange.cs
- LogLogRecord.cs
- XslVisitor.cs
- InputLanguageSource.cs
- TypeHelpers.cs
- DataGridViewImageColumn.cs
- RuleConditionDialog.Designer.cs
- ToolStripContainer.cs
- FrameworkElement.cs
- RoleService.cs
- RouteData.cs
- Int32CollectionValueSerializer.cs
- SqlDelegatedTransaction.cs
- OverflowException.cs
- PublishLicense.cs
- ToolTipService.cs
- HotSpotCollectionEditor.cs
- PluralizationServiceUtil.cs
- DragDrop.cs
- CodeIdentifiers.cs
- MailAddress.cs
- CollectionsUtil.cs
- GridProviderWrapper.cs
- DirtyTextRange.cs
- HtmlInputText.cs
- MetadataArtifactLoaderCompositeResource.cs
- XmlCustomFormatter.cs
- SoapObjectWriter.cs
- Formatter.cs
- WindowClosedEventArgs.cs
- IPAddress.cs
- AddInController.cs
- QueryReaderSettings.cs
- DateTimeFormat.cs
- AlphabeticalEnumConverter.cs
- WindowsListViewSubItem.cs
- CodeAttributeDeclarationCollection.cs
- EventLogPermissionEntry.cs
- TextFormatterImp.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- TransformerInfoCollection.cs
- XmlSchemaSequence.cs