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
- NodeInfo.cs
- VBCodeProvider.cs
- DataGridItemCollection.cs
- TcpProcessProtocolHandler.cs
- GenericArgumentsUpdater.cs
- EditorPartChrome.cs
- Environment.cs
- WmlMobileTextWriter.cs
- KeyFrames.cs
- SiteMapNodeItemEventArgs.cs
- DirectionalLight.cs
- ClientUrlResolverWrapper.cs
- OutputCacheModule.cs
- MimeParameterWriter.cs
- PositiveTimeSpanValidator.cs
- WindowsScrollBar.cs
- ping.cs
- InternalConfigHost.cs
- MD5HashHelper.cs
- StylusPointPropertyInfoDefaults.cs
- FunctionDefinition.cs
- ScrollEvent.cs
- Mapping.cs
- IndentedTextWriter.cs
- DataGridColumn.cs
- SerializationBinder.cs
- SiteMapNodeItem.cs
- SingleTagSectionHandler.cs
- MutexSecurity.cs
- XmlSerializationWriter.cs
- XmlDownloadManager.cs
- SafeMemoryMappedViewHandle.cs
- OTFRasterizer.cs
- WebServiceData.cs
- BaseResourcesBuildProvider.cs
- BreakRecordTable.cs
- ColorIndependentAnimationStorage.cs
- BadImageFormatException.cs
- BitmapFrame.cs
- GrammarBuilderRuleRef.cs
- FolderLevelBuildProvider.cs
- HtmlInputImage.cs
- GridViewRowPresenter.cs
- XmlSchemaSet.cs
- ResourcePermissionBase.cs
- IntegerCollectionEditor.cs
- ProfileGroupSettingsCollection.cs
- XNodeSchemaApplier.cs
- PropertyGridEditorPart.cs
- KeyboardEventArgs.cs
- XmlILConstructAnalyzer.cs
- AuthorizationRule.cs
- SerializerDescriptor.cs
- PerspectiveCamera.cs
- AsyncParams.cs
- FormViewAutoFormat.cs
- StrongNameUtility.cs
- RelatedView.cs
- validationstate.cs
- ProfileParameter.cs
- SrgsToken.cs
- PackageRelationship.cs
- WasEndpointConfigContainer.cs
- FrameAutomationPeer.cs
- KeyboardEventArgs.cs
- TableProviderWrapper.cs
- IDQuery.cs
- MarkupCompiler.cs
- TableLayoutPanel.cs
- CompModSwitches.cs
- Privilege.cs
- ScrollItemPattern.cs
- InkCanvasInnerCanvas.cs
- SoapClientMessage.cs
- CodeVariableReferenceExpression.cs
- SubqueryTrackingVisitor.cs
- CustomAttribute.cs
- HtmlElementErrorEventArgs.cs
- TextAnchor.cs
- ParameterReplacerVisitor.cs
- XamlFrame.cs
- CompareInfo.cs
- DataGridViewDataErrorEventArgs.cs
- _SecureChannel.cs
- DataGridViewCellMouseEventArgs.cs
- DocumentGridContextMenu.cs
- PropertyIDSet.cs
- RemoveStoryboard.cs
- SchemaTypeEmitter.cs
- AsyncDataRequest.cs
- ViewStateChangedEventArgs.cs
- ConstraintCollection.cs
- StringUtil.cs
- SystemResources.cs
- SystemPens.cs
- FileClassifier.cs
- RectangleConverter.cs
- XmlSyndicationContent.cs
- HtmlTableRow.cs
- KeyValuePairs.cs