Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- Wizard.cs
- GlobalProxySelection.cs
- UIElementPropertyUndoUnit.cs
- _Events.cs
- BuildManager.cs
- Socket.cs
- WorkflowNamespace.cs
- BufferBuilder.cs
- NavigatorOutput.cs
- CoreSwitches.cs
- DataIdProcessor.cs
- SpnEndpointIdentityExtension.cs
- cookiecontainer.cs
- _NegoStream.cs
- StrokeCollection.cs
- InkCollectionBehavior.cs
- BindingList.cs
- TextEditorContextMenu.cs
- DynamicVirtualDiscoSearcher.cs
- RegexInterpreter.cs
- AliasedSlot.cs
- BaseTemplateCodeDomTreeGenerator.cs
- Run.cs
- ImageMap.cs
- SkewTransform.cs
- FaultCode.cs
- ApplicationBuildProvider.cs
- DictionaryBase.cs
- NamespaceList.cs
- Visual3D.cs
- WebPartConnectionsCancelVerb.cs
- GreenMethods.cs
- Select.cs
- OleTxTransactionInfo.cs
- CodeParameterDeclarationExpressionCollection.cs
- ParagraphVisual.cs
- FamilyCollection.cs
- CodeObjectCreateExpression.cs
- Random.cs
- XsltSettings.cs
- login.cs
- XPathNavigator.cs
- IdleTimeoutMonitor.cs
- MemberMemberBinding.cs
- COM2FontConverter.cs
- StickyNoteContentControl.cs
- FormsAuthenticationConfiguration.cs
- SqlDataSourceCache.cs
- WebPartConnectionsConnectVerb.cs
- DefaultWorkflowLoaderService.cs
- LineGeometry.cs
- ToolStripSeparatorRenderEventArgs.cs
- BamlLocalizationDictionary.cs
- SizeF.cs
- ConfigUtil.cs
- NativeMethodsOther.cs
- SignalGate.cs
- SolidBrush.cs
- NameValueSectionHandler.cs
- XmlFileEditor.cs
- Int16Storage.cs
- Vector3DCollectionValueSerializer.cs
- StorageMappingItemCollection.cs
- DataBoundControlParameterTarget.cs
- TypeUsageBuilder.cs
- ListViewDataItem.cs
- TableLayoutCellPaintEventArgs.cs
- MessageSmuggler.cs
- QueryMath.cs
- QueryInterceptorAttribute.cs
- StringValidator.cs
- TextBlockAutomationPeer.cs
- PenThreadPool.cs
- QilScopedVisitor.cs
- UpDownEvent.cs
- ConnectionPointCookie.cs
- PhysicalAddress.cs
- Point4DValueSerializer.cs
- XmlDataSourceView.cs
- Mutex.cs
- OneOfScalarConst.cs
- CellTreeNodeVisitors.cs
- DateTimeFormatInfo.cs
- XamlToRtfWriter.cs
- UInt32Converter.cs
- ClipboardProcessor.cs
- TypedTableBase.cs
- WindowsAuthenticationEventArgs.cs
- externdll.cs
- TransportElement.cs
- HandlerFactoryWrapper.cs
- DPCustomTypeDescriptor.cs
- PageSetupDialog.cs
- ConfigXmlAttribute.cs
- RequiredFieldValidator.cs
- TextRangeBase.cs
- FilterQueryOptionExpression.cs
- XmlSigningNodeWriter.cs
- ExpressionBindings.cs
- FactoryMaker.cs