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
- ConfigurationManager.cs
- IdentifierCollection.cs
- BuilderPropertyEntry.cs
- RequestQueryProcessor.cs
- SizeAnimation.cs
- EventItfInfo.cs
- ManipulationStartedEventArgs.cs
- FixedDocument.cs
- DataGridViewRowConverter.cs
- XmlFormatExtensionAttribute.cs
- DirectoryNotFoundException.cs
- MergeLocalizationDirectives.cs
- DataGridViewToolTip.cs
- StylusPointPropertyInfoDefaults.cs
- SqlCrossApplyToCrossJoin.cs
- TreeNodeEventArgs.cs
- MulticastIPAddressInformationCollection.cs
- SchemaAttDef.cs
- TextParagraphCache.cs
- CompModSwitches.cs
- ExpandedProjectionNode.cs
- DataGridViewSortCompareEventArgs.cs
- GenericRootAutomationPeer.cs
- XmlILAnnotation.cs
- ButtonPopupAdapter.cs
- ThemeDirectoryCompiler.cs
- ScriptManagerProxy.cs
- StylusCollection.cs
- EditCommandColumn.cs
- InstanceDescriptor.cs
- AttributeSetAction.cs
- ModelPropertyDescriptor.cs
- ProcessInfo.cs
- EmptyReadOnlyDictionaryInternal.cs
- DynamicPropertyReader.cs
- XmlAtomicValue.cs
- PersonalizationProvider.cs
- WebPartVerbCollection.cs
- ScriptingAuthenticationServiceSection.cs
- ChildTable.cs
- AutoResizedEvent.cs
- RemotingAttributes.cs
- WebRequestModuleElement.cs
- HttpProfileGroupBase.cs
- TabOrder.cs
- EmptyElement.cs
- HandleCollector.cs
- StrokeIntersection.cs
- ReadOnlyCollectionBase.cs
- DataGridViewRow.cs
- TagMapInfo.cs
- BindingSource.cs
- FrameworkElementFactoryMarkupObject.cs
- objectresult_tresulttype.cs
- InternalConfigSettingsFactory.cs
- PreviewPageInfo.cs
- Control.cs
- SmiEventSink_DeferedProcessing.cs
- DataViewSetting.cs
- FullTextLine.cs
- FlowDocumentPageViewerAutomationPeer.cs
- HotSpotCollection.cs
- Literal.cs
- DeviceContext2.cs
- IsolatedStorageFile.cs
- XmlSerializationWriter.cs
- DataGridViewRowPostPaintEventArgs.cs
- StatusStrip.cs
- ToolStripContentPanelRenderEventArgs.cs
- RenderData.cs
- DataGridViewCheckBoxColumn.cs
- InternalConfigEventArgs.cs
- InstanceKey.cs
- PagePropertiesChangingEventArgs.cs
- RMPublishingDialog.cs
- RegisteredDisposeScript.cs
- SqlGenerator.cs
- BitmapEffectInput.cs
- GPPOINT.cs
- SendMailErrorEventArgs.cs
- Cursors.cs
- XmlNamespaceDeclarationsAttribute.cs
- Convert.cs
- RequestChannelBinder.cs
- FlowDocument.cs
- Header.cs
- ScrollData.cs
- BrowserTree.cs
- EncoderParameters.cs
- SemaphoreSecurity.cs
- TraceSwitch.cs
- HttpContext.cs
- StringConverter.cs
- BooleanExpr.cs
- XmlDesigner.cs
- MemberMemberBinding.cs
- DependsOnAttribute.cs
- QueryStringConverter.cs
- OrderedDictionary.cs
- baseaxisquery.cs