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;
///
/// 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
- ClientFormsAuthenticationCredentials.cs
- SparseMemoryStream.cs
- TextRangeEditTables.cs
- ToolStripCollectionEditor.cs
- TypeToArgumentTypeConverter.cs
- RTLAwareMessageBox.cs
- TreeNodeStyleCollection.cs
- Helpers.cs
- ButtonStandardAdapter.cs
- DataTrigger.cs
- QueryException.cs
- TemplateParser.cs
- Crypto.cs
- SerializationHelper.cs
- SiblingIterators.cs
- AvtEvent.cs
- ResXFileRef.cs
- BitmapEffectGroup.cs
- ALinqExpressionVisitor.cs
- CachedFontFace.cs
- versioninfo.cs
- MimeReturn.cs
- WebResourceUtil.cs
- MobileFormsAuthentication.cs
- ButtonColumn.cs
- NonVisualControlAttribute.cs
- EntityConnection.cs
- StatusStrip.cs
- DataControlFieldTypeEditor.cs
- VectorValueSerializer.cs
- Random.cs
- FilterQuery.cs
- ChangeDirector.cs
- Model3DGroup.cs
- XmlAutoDetectWriter.cs
- NativeMethods.cs
- SqlProvider.cs
- ToolStripSystemRenderer.cs
- versioninfo.cs
- CompressionTransform.cs
- _UncName.cs
- OptimisticConcurrencyException.cs
- GenericWebPart.cs
- ToolStripDropDownClosedEventArgs.cs
- BindingExpressionUncommonField.cs
- StructuralObject.cs
- RestClientProxyHandler.cs
- WbmpConverter.cs
- DataFormats.cs
- TraceContextRecord.cs
- StylusPointPropertyId.cs
- PackageRelationship.cs
- Odbc32.cs
- TerminateWorkflow.cs
- XNameTypeConverter.cs
- WebRequest.cs
- SrgsRulesCollection.cs
- SendActivityValidator.cs
- OleDbFactory.cs
- ControlBindingsConverter.cs
- MetroSerializationManager.cs
- TemplateControlCodeDomTreeGenerator.cs
- CaseStatement.cs
- SqlDataReader.cs
- ImpersonateTokenRef.cs
- TreeNodeBindingDepthConverter.cs
- AlternateViewCollection.cs
- ConnectionStringSettings.cs
- DocumentPageHost.cs
- MDIWindowDialog.cs
- HostUtils.cs
- CompilerError.cs
- Baml2006KnownTypes.cs
- InvalidDataException.cs
- DoubleAnimationUsingPath.cs
- Size3DValueSerializer.cs
- X500Name.cs
- ConnectionManagementElementCollection.cs
- DataKeyCollection.cs
- CodeCompileUnit.cs
- BindingGraph.cs
- WebPartEventArgs.cs
- XmlTextReaderImpl.cs
- QueryResults.cs
- AssociationSetEnd.cs
- BrushValueSerializer.cs
- InternalPermissions.cs
- EntryIndex.cs
- ProxyGenerationError.cs
- RoutingExtension.cs
- MatrixAnimationUsingPath.cs
- BinHexDecoder.cs
- SqlMethodTransformer.cs
- HttpServerVarsCollection.cs
- DirectionalLight.cs
- ProjectionAnalyzer.cs
- ZipIOExtraFieldZip64Element.cs
- returneventsaver.cs
- WebPartsPersonalizationAuthorization.cs
- Metafile.cs