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
- ComponentEvent.cs
- View.cs
- Vector.cs
- XsltException.cs
- WCFBuildProvider.cs
- ProfileSettings.cs
- DbDeleteCommandTree.cs
- XmlDocumentSchema.cs
- RijndaelManagedTransform.cs
- DataKey.cs
- FactoryMaker.cs
- HtmlWindow.cs
- KeyPullup.cs
- MetaChildrenColumn.cs
- ErrorEventArgs.cs
- SizeConverter.cs
- ScriptingJsonSerializationSection.cs
- XmlSchemaCompilationSettings.cs
- ExcCanonicalXml.cs
- FileDataSourceCache.cs
- PagerSettings.cs
- ViewBox.cs
- Propagator.Evaluator.cs
- XmlC14NWriter.cs
- InstanceDataCollectionCollection.cs
- WebCategoryAttribute.cs
- DigestTraceRecordHelper.cs
- DbProviderSpecificTypePropertyAttribute.cs
- SamlAttribute.cs
- TextEditorCharacters.cs
- OrthographicCamera.cs
- TreeNode.cs
- ToolStripItemClickedEventArgs.cs
- CounterCreationData.cs
- InvariantComparer.cs
- PartialCachingControl.cs
- ThreadBehavior.cs
- LinqDataSourceContextData.cs
- Encoder.cs
- CornerRadiusConverter.cs
- Executor.cs
- SystemIPGlobalStatistics.cs
- webeventbuffer.cs
- FileLoadException.cs
- RIPEMD160Managed.cs
- UIElementPropertyUndoUnit.cs
- PageRanges.cs
- ToolStrip.cs
- Function.cs
- RowCache.cs
- ProviderCommandInfoUtils.cs
- CodeTypeDeclarationCollection.cs
- SoapIgnoreAttribute.cs
- UserMapPath.cs
- SynchronizationScope.cs
- CookieParameter.cs
- HtmlTable.cs
- XmlSchemaImport.cs
- DataTableClearEvent.cs
- SequenceRangeCollection.cs
- ValidatedMobileControlConverter.cs
- StyleSelector.cs
- XamlPathDataSerializer.cs
- TablePattern.cs
- TableCellAutomationPeer.cs
- SHA1CryptoServiceProvider.cs
- RepeaterCommandEventArgs.cs
- MarkupProperty.cs
- AutoResetEvent.cs
- XamlToRtfWriter.cs
- Invariant.cs
- FrameworkPropertyMetadata.cs
- TreeWalker.cs
- Helpers.cs
- DiscriminatorMap.cs
- RelationshipDetailsRow.cs
- Buffer.cs
- CompressedStack.cs
- TransformedBitmap.cs
- recordstatescratchpad.cs
- DbDataAdapter.cs
- XmlSchemaAll.cs
- HttpValueCollection.cs
- XmlSchemas.cs
- FocusTracker.cs
- GridViewCommandEventArgs.cs
- prefixendpointaddressmessagefiltertable.cs
- StoreAnnotationsMap.cs
- TextSpanModifier.cs
- XmlSchemaInfo.cs
- arc.cs
- GroupBoxDesigner.cs
- ParameterCollection.cs
- SafeProcessHandle.cs
- StylusPointCollection.cs
- SecurityAccessDeniedException.cs
- Privilege.cs
- DesignerRegion.cs
- PersistStreamTypeWrapper.cs
- VirtualPath.cs