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
- ElementUtil.cs
- FontUnitConverter.cs
- ObjectComplexPropertyMapping.cs
- WorkflowServiceHostFactory.cs
- DocumentPageHost.cs
- TextEndOfParagraph.cs
- TextTreeObjectNode.cs
- CommentAction.cs
- CommandHelpers.cs
- NetSectionGroup.cs
- FileBasedResourceGroveler.cs
- EventProviderTraceListener.cs
- Walker.cs
- DataGridItemCollection.cs
- FilterElement.cs
- nulltextcontainer.cs
- FixedHyperLink.cs
- BehaviorService.cs
- SmtpSection.cs
- FontDriver.cs
- SQLInt32.cs
- SiteMapNode.cs
- XmlLinkedNode.cs
- RIPEMD160Managed.cs
- RectAnimationBase.cs
- ControlDesignerState.cs
- DetailsViewUpdatedEventArgs.cs
- FaultPropagationQuery.cs
- SponsorHelper.cs
- BuildProvider.cs
- SerializationEventsCache.cs
- SmtpNtlmAuthenticationModule.cs
- BufferedWebEventProvider.cs
- RecognizedPhrase.cs
- CounterSetInstanceCounterDataSet.cs
- AttributeCollection.cs
- SimpleRecyclingCache.cs
- ManagedWndProcTracker.cs
- TableAutomationPeer.cs
- DuplexClientBase.cs
- ByteAnimationUsingKeyFrames.cs
- MarginCollapsingState.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- XmlObjectSerializerReadContextComplex.cs
- DiscoveryClientDocuments.cs
- WsatConfiguration.cs
- TagPrefixInfo.cs
- DataSourceXmlClassAttribute.cs
- EntityContainerEmitter.cs
- BamlRecordReader.cs
- PropertyDescriptor.cs
- ScriptingAuthenticationServiceSection.cs
- SSmlParser.cs
- GraphicsPathIterator.cs
- WebServiceData.cs
- XmlNamespaceMappingCollection.cs
- UIElementCollection.cs
- _LazyAsyncResult.cs
- Frame.cs
- ProvidePropertyAttribute.cs
- ProcessHostServerConfig.cs
- HttpWebResponse.cs
- ConnectionStringSettingsCollection.cs
- SystemEvents.cs
- IdentityReference.cs
- DataViewManager.cs
- SignedXml.cs
- GroupItem.cs
- ValidationResult.cs
- PropertyEmitter.cs
- SpellerError.cs
- StateManagedCollection.cs
- AxParameterData.cs
- GPRECTF.cs
- ErrorStyle.cs
- IOThreadTimer.cs
- ControlBindingsCollection.cs
- ColumnClickEvent.cs
- XmlTypeMapping.cs
- SrgsRule.cs
- DataViewSetting.cs
- CounterCreationData.cs
- ThreadStateException.cs
- IIS7UserPrincipal.cs
- HostProtectionException.cs
- HtmlInputImage.cs
- ConfigurationStrings.cs
- Normalization.cs
- AxisAngleRotation3D.cs
- ParallelTimeline.cs
- DecimalConverter.cs
- CodeMemberMethod.cs
- DataObjectPastingEventArgs.cs
- XmlDataFileEditor.cs
- ComponentCodeDomSerializer.cs
- Stacktrace.cs
- ControlParser.cs
- MenuStrip.cs
- ProviderConnectionPointCollection.cs
- GenericIdentity.cs