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
- RectAnimationUsingKeyFrames.cs
- RadioButtonPopupAdapter.cs
- MemberAccessException.cs
- ScrollData.cs
- CardSpaceShim.cs
- TraceContextEventArgs.cs
- Utility.cs
- TreeNode.cs
- Encoder.cs
- CfgSemanticTag.cs
- cache.cs
- CompiledAction.cs
- UnicodeEncoding.cs
- ItemsControlAutomationPeer.cs
- Fx.cs
- WebPartCatalogAddVerb.cs
- WebReferenceOptions.cs
- ProfileInfo.cs
- OdbcErrorCollection.cs
- ColumnHeaderCollectionEditor.cs
- SrgsText.cs
- TemplateKeyConverter.cs
- TypeNameHelper.cs
- EventMappingSettings.cs
- DrawingContextWalker.cs
- HttpWrapper.cs
- ReflectionUtil.cs
- OpCopier.cs
- DataGridViewAutoSizeModeEventArgs.cs
- TemplateKey.cs
- XPathNodePointer.cs
- TrackingStringDictionary.cs
- SqlMethodAttribute.cs
- XmlResolver.cs
- CodeSnippetTypeMember.cs
- AttributeCollection.cs
- ISO2022Encoding.cs
- TraceLog.cs
- DataRowCollection.cs
- SplitContainerDesigner.cs
- ListComponentEditorPage.cs
- AvTrace.cs
- StrokeCollectionDefaultValueFactory.cs
- DomainUpDown.cs
- OperationDescription.cs
- FreeFormDesigner.cs
- Model3DGroup.cs
- SubMenuStyleCollectionEditor.cs
- CharAnimationUsingKeyFrames.cs
- BitmapMetadataBlob.cs
- LinqDataSourceSelectEventArgs.cs
- EmptyWithCancelationCheckWorkItem.cs
- ParagraphVisual.cs
- Int32Converter.cs
- QueryContinueDragEvent.cs
- DataControlButton.cs
- WindowsSlider.cs
- ImageConverter.cs
- ScriptControl.cs
- ToolBarTray.cs
- RestHandlerFactory.cs
- ContentDesigner.cs
- HashAlgorithm.cs
- RoleService.cs
- TabControlEvent.cs
- ActiveDocumentEvent.cs
- XamlWrapperReaders.cs
- WinFormsSecurity.cs
- OdbcException.cs
- PersistenceIOParticipant.cs
- SizeAnimation.cs
- QueryPageSettingsEventArgs.cs
- DbExpressionVisitor.cs
- Module.cs
- WebBrowserDocumentCompletedEventHandler.cs
- AccessViolationException.cs
- TextContainerChangedEventArgs.cs
- xdrvalidator.cs
- ConnectionPoolManager.cs
- Win32.cs
- AnnotationAuthorChangedEventArgs.cs
- Rijndael.cs
- WindowsBrush.cs
- DataGridViewColumnDesigner.cs
- TemplateNodeContextMenu.cs
- X509Utils.cs
- ILGenerator.cs
- GlobalId.cs
- SchemaSetCompiler.cs
- webeventbuffer.cs
- CommandManager.cs
- Button.cs
- GiveFeedbackEventArgs.cs
- DbMetaDataColumnNames.cs
- AnimationTimeline.cs
- EmptyCollection.cs
- AssemblyCache.cs
- _DigestClient.cs
- SiteMapProvider.cs
- AdCreatedEventArgs.cs