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
- MsmqInputChannelListener.cs
- DropShadowEffect.cs
- XmlElementAttribute.cs
- QilScopedVisitor.cs
- BigInt.cs
- OleDbPropertySetGuid.cs
- ConsoleKeyInfo.cs
- shaperfactoryquerycacheentry.cs
- SaveFileDialog.cs
- SimpleHandlerFactory.cs
- XmlSchemaSimpleType.cs
- BindingContext.cs
- HttpValueCollection.cs
- KeyValueInternalCollection.cs
- EncoderFallback.cs
- XhtmlBasicPanelAdapter.cs
- ResolvedKeyFrameEntry.cs
- DefaultProxySection.cs
- URLEditor.cs
- DelegatingStream.cs
- GZipDecoder.cs
- CodeRemoveEventStatement.cs
- ControlPaint.cs
- SoapException.cs
- SharedDp.cs
- Html32TextWriter.cs
- SafeNativeMethodsMilCoreApi.cs
- ObjectDataSourceView.cs
- DesignSurfaceEvent.cs
- SqlParameterizer.cs
- VirtualizedContainerService.cs
- BlurBitmapEffect.cs
- HostingPreferredMapPath.cs
- CustomLineCap.cs
- MessageSecurityVersionConverter.cs
- FlatButtonAppearance.cs
- Signature.cs
- EmissiveMaterial.cs
- xmlfixedPageInfo.cs
- CodeDomDesignerLoader.cs
- ListManagerBindingsCollection.cs
- SqlComparer.cs
- SQLMembershipProvider.cs
- PreviewPrintController.cs
- DesignerVerb.cs
- XhtmlBasicObjectListAdapter.cs
- RequestContext.cs
- DrawingCollection.cs
- CookieParameter.cs
- NativeWindow.cs
- TraceLog.cs
- ProtectedProviderSettings.cs
- MultiSelector.cs
- TextRange.cs
- XmlLoader.cs
- RemotingSurrogateSelector.cs
- RegionIterator.cs
- StopStoryboard.cs
- SoapInteropTypes.cs
- DataServiceRequestOfT.cs
- ColorConvertedBitmap.cs
- XhtmlStyleClass.cs
- ValidationService.cs
- ToolBarButton.cs
- RowUpdatingEventArgs.cs
- ProxyHelper.cs
- CacheDependency.cs
- SchemaConstraints.cs
- ObfuscateAssemblyAttribute.cs
- TagMapCollection.cs
- XPathParser.cs
- ClientTargetCollection.cs
- GroupQuery.cs
- Pool.cs
- EntityDataSourceChangingEventArgs.cs
- BindingListCollectionView.cs
- ToolBarTray.cs
- FeatureSupport.cs
- UIElementIsland.cs
- Helpers.cs
- RightsDocument.cs
- PathData.cs
- WindowsNonControl.cs
- ProfileGroupSettingsCollection.cs
- GridViewColumn.cs
- BaseTreeIterator.cs
- SrgsDocument.cs
- LicFileLicenseProvider.cs
- SynchronizedDispatch.cs
- ConnectionStringsSection.cs
- PathTooLongException.cs
- Walker.cs
- ItemChangedEventArgs.cs
- Boolean.cs
- PerformanceCountersElement.cs
- PeerTransportSecurityElement.cs
- EntityDataSourceStatementEditorForm.cs
- IncrementalCompileAnalyzer.cs
- ContextProperty.cs
- TreeNodeMouseHoverEvent.cs