Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / InstallerTypeAttribute.cs / 1305376 / 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
- DbParameterCollection.cs
- InputReferenceExpression.cs
- DataRelationPropertyDescriptor.cs
- MenuItemStyle.cs
- ThreadStateException.cs
- controlskin.cs
- StoreItemCollection.cs
- MaskDescriptor.cs
- SqlDataSourceDesigner.cs
- WebPartConnectionCollection.cs
- recordstatescratchpad.cs
- TextSpanModifier.cs
- CachedPathData.cs
- AnalyzedTree.cs
- PropertyChangedEventManager.cs
- ImageAttributes.cs
- ContainerUIElement3D.cs
- Vars.cs
- DataGridViewImageCell.cs
- BuilderPropertyEntry.cs
- KeyBinding.cs
- SerialStream.cs
- ProcessModule.cs
- PersistenceTypeAttribute.cs
- COAUTHIDENTITY.cs
- ToolStripContextMenu.cs
- SelectedGridItemChangedEvent.cs
- FileNotFoundException.cs
- CodeCatchClauseCollection.cs
- _FtpDataStream.cs
- DesignerProperties.cs
- ValidationRule.cs
- MimeBasePart.cs
- ModelFactory.cs
- VisualTreeHelper.cs
- Message.cs
- ManipulationStartingEventArgs.cs
- LinqDataSourceValidationException.cs
- TextServicesProperty.cs
- DependencyPropertyAttribute.cs
- InstallerTypeAttribute.cs
- HitTestFilterBehavior.cs
- QueryPrefixOp.cs
- RemoteWebConfigurationHostServer.cs
- AttributeCallbackBuilder.cs
- HostedElements.cs
- ToolboxItemFilterAttribute.cs
- OleDbMetaDataFactory.cs
- List.cs
- StrokeDescriptor.cs
- TimeoutHelper.cs
- IProducerConsumerCollection.cs
- IsolatedStorageException.cs
- RelatedPropertyManager.cs
- TabControlAutomationPeer.cs
- ConcurrentStack.cs
- HwndHostAutomationPeer.cs
- ADMembershipProvider.cs
- TickBar.cs
- DependencyPropertyKey.cs
- DataGridViewColumnStateChangedEventArgs.cs
- FieldMetadata.cs
- XmlToDatasetMap.cs
- FormViewModeEventArgs.cs
- SettingsSavedEventArgs.cs
- autovalidator.cs
- SetterTriggerConditionValueConverter.cs
- OdbcConnectionHandle.cs
- LongSumAggregationOperator.cs
- AQNBuilder.cs
- GorillaCodec.cs
- IndexedString.cs
- Composition.cs
- RefreshPropertiesAttribute.cs
- WeakReferenceEnumerator.cs
- DataControlField.cs
- TypeLoadException.cs
- PrimitiveXmlSerializers.cs
- DataSourceIDConverter.cs
- SqlBinder.cs
- StylusLogic.cs
- ColorContextHelper.cs
- SchemaImporter.cs
- EmbossBitmapEffect.cs
- CompareInfo.cs
- XmlWhitespace.cs
- ForwardPositionQuery.cs
- TextAction.cs
- CollectionView.cs
- FormClosedEvent.cs
- DataRowExtensions.cs
- GeometryDrawing.cs
- ListView.cs
- InfiniteTimeSpanConverter.cs
- Quaternion.cs
- ChameleonKey.cs
- DataBoundControlAdapter.cs
- HelpHtmlBuilder.cs
- ConstraintStruct.cs
- XmlLanguageConverter.cs