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
- TextParagraph.cs
- formatter.cs
- EventLogStatus.cs
- TracingConnectionInitiator.cs
- DataObjectAttribute.cs
- ParameterReplacerVisitor.cs
- StrokeCollection2.cs
- SoapExtensionTypeElementCollection.cs
- PathTooLongException.cs
- ParsedAttributeCollection.cs
- CookieParameter.cs
- DataGridViewRowsRemovedEventArgs.cs
- SystemGatewayIPAddressInformation.cs
- MsmqBindingBase.cs
- CustomErrorCollection.cs
- DbProviderManifest.cs
- ParserContext.cs
- ScrollBar.cs
- VideoDrawing.cs
- OpacityConverter.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- ToolboxItemAttribute.cs
- IisTraceListener.cs
- UIElementAutomationPeer.cs
- CursorConverter.cs
- UriSchemeKeyedCollection.cs
- RowBinding.cs
- ProfileEventArgs.cs
- InitializingNewItemEventArgs.cs
- XsdDuration.cs
- ZipIOExtraFieldZip64Element.cs
- FlowDocumentPaginator.cs
- SiteMembershipCondition.cs
- BlockCollection.cs
- TripleDESCryptoServiceProvider.cs
- UnsafeNativeMethods.cs
- IImplicitResourceProvider.cs
- LogicalExpr.cs
- FixedPageStructure.cs
- EntityTransaction.cs
- MessageAction.cs
- ProfileEventArgs.cs
- MatrixAnimationUsingPath.cs
- MdImport.cs
- IpcClientManager.cs
- SamlSerializer.cs
- MessageQueueEnumerator.cs
- ToolStripSplitButton.cs
- CipherData.cs
- TextureBrush.cs
- CompressEmulationStream.cs
- HandleRef.cs
- TaskHelper.cs
- SoapObjectReader.cs
- jithelpers.cs
- WebPartConnectionsDisconnectVerb.cs
- ReferenceAssemblyAttribute.cs
- MaterialGroup.cs
- PerspectiveCamera.cs
- TreeViewItemAutomationPeer.cs
- UnauthorizedWebPart.cs
- HistoryEventArgs.cs
- DataListCommandEventArgs.cs
- WorkflowViewStateService.cs
- HostProtectionException.cs
- ReadOnlyDictionary.cs
- RowTypePropertyElement.cs
- TextFormatterImp.cs
- ExceptionUtil.cs
- HelpProvider.cs
- VisualCollection.cs
- storagemappingitemcollection.viewdictionary.cs
- XpsS0ValidatingLoader.cs
- CategoryGridEntry.cs
- CompareInfo.cs
- Activity.cs
- HashCryptoHandle.cs
- MediaTimeline.cs
- Itemizer.cs
- FontSourceCollection.cs
- XPathAncestorIterator.cs
- XmlSchemaException.cs
- CompilerGlobalScopeAttribute.cs
- autovalidator.cs
- FamilyCollection.cs
- UIElementHelper.cs
- IssuedTokenClientElement.cs
- SymbolTable.cs
- FixedDocument.cs
- ServiceDesigner.cs
- MouseWheelEventArgs.cs
- DataGridViewDataConnection.cs
- DbProviderSpecificTypePropertyAttribute.cs
- InvalidPrinterException.cs
- X509SecurityToken.cs
- Source.cs
- WebReferenceCollection.cs
- StaticDataManager.cs
- Wizard.cs
- KeyGestureConverter.cs