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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SkipStoryboardToFill.cs
- Track.cs
- AutoResetEvent.cs
- SelectionPattern.cs
- Switch.cs
- ButtonBaseAutomationPeer.cs
- PropertyPath.cs
- AssemblyCacheEntry.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- Page.cs
- NetworkStream.cs
- OdbcParameterCollection.cs
- ResourceContainer.cs
- FileReservationCollection.cs
- ScrollBarRenderer.cs
- PageCanvasSize.cs
- ConnectionManagementElementCollection.cs
- FocusTracker.cs
- MappedMetaModel.cs
- Deserializer.cs
- CacheManager.cs
- ToolStripActionList.cs
- AlgoModule.cs
- WmfPlaceableFileHeader.cs
- BindableAttribute.cs
- VirtualizingStackPanel.cs
- EntitySetDataBindingList.cs
- securestring.cs
- Wildcard.cs
- RequestNavigateEventArgs.cs
- IResourceProvider.cs
- BitmapEffectGroup.cs
- FieldTemplateFactory.cs
- WindowShowOrOpenTracker.cs
- DataGridViewCellLinkedList.cs
- HttpCapabilitiesBase.cs
- WithParamAction.cs
- ComponentDispatcher.cs
- RegexMatch.cs
- EntityDataSourceContainerNameItem.cs
- UserPersonalizationStateInfo.cs
- ElapsedEventArgs.cs
- DesignOnlyAttribute.cs
- _RequestCacheProtocol.cs
- XmlUtf8RawTextWriter.cs
- LinkedResourceCollection.cs
- ListBox.cs
- XhtmlBasicCommandAdapter.cs
- StrokeNode.cs
- LiteralControl.cs
- ParallelTimeline.cs
- FlowThrottle.cs
- Shared.cs
- BamlTreeUpdater.cs
- ScriptReference.cs
- BinaryOperationBinder.cs
- PromptBuilder.cs
- WebPartCollection.cs
- ToolStripOverflow.cs
- SingleStorage.cs
- WsatTransactionInfo.cs
- StringSorter.cs
- HelpKeywordAttribute.cs
- GCHandleCookieTable.cs
- SortKey.cs
- XmlTextWriter.cs
- HtmlImage.cs
- XmlEntityReference.cs
- _NegoStream.cs
- RuntimeConfig.cs
- DataServiceKeyAttribute.cs
- ConversionValidationRule.cs
- _StreamFramer.cs
- NamespaceListProperty.cs
- BitmapEffectGroup.cs
- Processor.cs
- TextElementEnumerator.cs
- ServiceContractViewControl.cs
- ProgressiveCrcCalculatingStream.cs
- EntityClassGenerator.cs
- DetailsViewInsertEventArgs.cs
- ProcessModuleDesigner.cs
- ConfigurationSettings.cs
- SslStream.cs
- SessionParameter.cs
- HttpListenerContext.cs
- Propagator.ExtentPlaceholderCreator.cs
- PropertyTab.cs
- TrackingCondition.cs
- UIElement3D.cs
- Sequence.cs
- Interop.cs
- PropertyFilter.cs
- WindowsTooltip.cs
- SoapReflectionImporter.cs
- ServiceModelConfigurationSectionGroup.cs
- TextBlock.cs
- XmlDeclaration.cs
- DynamicUpdateCommand.cs
- ValueProviderWrapper.cs