Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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; ////// [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
- LinqDataSourceSelectEventArgs.cs
- Transform3DGroup.cs
- LinqDataSourceView.cs
- WebPartConnectionsConnectVerb.cs
- VerificationException.cs
- SvcMapFile.cs
- NavigationWindow.cs
- CustomAttributeFormatException.cs
- ClientTargetCollection.cs
- X509CertificateChain.cs
- SafeBitVector32.cs
- ResourcePart.cs
- CollectionViewGroupRoot.cs
- Binding.cs
- GeometryHitTestResult.cs
- SoapFault.cs
- FileSystemEventArgs.cs
- Compiler.cs
- XmlTextReader.cs
- ColumnClickEvent.cs
- WindowsAltTab.cs
- LongMinMaxAggregationOperator.cs
- XmlSchemaSimpleContent.cs
- ListViewDataItem.cs
- StaticSiteMapProvider.cs
- FigureHelper.cs
- MouseButton.cs
- CurrentTimeZone.cs
- PtsCache.cs
- ClientConvert.cs
- DBCSCodePageEncoding.cs
- AstNode.cs
- BaseHashHelper.cs
- Base64Decoder.cs
- NetSectionGroup.cs
- ItemCollection.cs
- HexParser.cs
- TabControl.cs
- TemplateColumn.cs
- AspCompat.cs
- VersionedStream.cs
- RoutingExtension.cs
- RepeaterDesigner.cs
- XmlSchemaAnyAttribute.cs
- Crc32.cs
- ConfigurationSectionGroupCollection.cs
- JsonReader.cs
- Ray3DHitTestResult.cs
- StylusTip.cs
- SynchronizationContext.cs
- SqlDataSourceStatusEventArgs.cs
- PathGeometry.cs
- SymmetricKeyWrap.cs
- HashRepartitionStream.cs
- ZipIOExtraFieldZip64Element.cs
- QueueProcessor.cs
- WindowsButton.cs
- HMACSHA512.cs
- CFStream.cs
- ToolStripLocationCancelEventArgs.cs
- Geometry3D.cs
- MethodExpression.cs
- MimeTypeAttribute.cs
- ToolStripSplitButton.cs
- WebPartDescription.cs
- WebDisplayNameAttribute.cs
- MessageHeaderDescription.cs
- ChannelServices.cs
- KerberosTokenFactoryCredential.cs
- MobileListItem.cs
- SrgsRule.cs
- GraphicsState.cs
- BrowserCapabilitiesCodeGenerator.cs
- RotateTransform3D.cs
- MenuCommandsChangedEventArgs.cs
- Mouse.cs
- PathFigure.cs
- DataGridViewBindingCompleteEventArgs.cs
- ReferenceEqualityComparer.cs
- WindowsAuthenticationEventArgs.cs
- HttpResponseWrapper.cs
- ReferencedAssemblyResolver.cs
- ConfigurationValidatorBase.cs
- QueryContinueDragEvent.cs
- Walker.cs
- PriorityBindingExpression.cs
- COM2Properties.cs
- SettingsSavedEventArgs.cs
- AppDomainFactory.cs
- oledbconnectionstring.cs
- TagMapInfo.cs
- WhitespaceSignificantCollectionAttribute.cs
- ScriptModule.cs
- SqlCacheDependency.cs
- ValueUtilsSmi.cs
- ScrollChrome.cs
- Executor.cs
- CustomAttributeBuilder.cs
- DiagnosticStrings.cs
- DetailsViewRowCollection.cs