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
- MouseEventArgs.cs
- MetadataSection.cs
- ExtendedProtectionPolicyElement.cs
- DesignerCommandAdapter.cs
- DataReaderContainer.cs
- HtmlEncodedRawTextWriter.cs
- CfgArc.cs
- ApplicationProxyInternal.cs
- ConsumerConnectionPointCollection.cs
- OperationAbortedException.cs
- SrgsElement.cs
- TemplateXamlParser.cs
- NativeMethods.cs
- RotateTransform.cs
- CompilerTypeWithParams.cs
- HashCodeCombiner.cs
- ChannelBinding.cs
- TimeSpanFormat.cs
- SerializationInfo.cs
- SqlMethodTransformer.cs
- XsltLoader.cs
- Knowncolors.cs
- Pen.cs
- DropDownButton.cs
- TextTreeInsertUndoUnit.cs
- BuildProvidersCompiler.cs
- BufferedGraphics.cs
- ToolStripDropDownMenu.cs
- ZipPackage.cs
- QilList.cs
- Form.cs
- MILUtilities.cs
- ObjectNavigationPropertyMapping.cs
- securestring.cs
- Compilation.cs
- ImageBrush.cs
- Bits.cs
- XmlException.cs
- SharedStream.cs
- AttributeSetAction.cs
- ViewGenResults.cs
- WindowsTitleBar.cs
- InputReferenceExpression.cs
- InkCollectionBehavior.cs
- ContextQuery.cs
- CodeTypeOfExpression.cs
- CardSpaceException.cs
- MatrixUtil.cs
- WindowsListViewGroupHelper.cs
- AsyncDataRequest.cs
- DiffuseMaterial.cs
- MetadataArtifactLoader.cs
- ViewGenerator.cs
- SecurityKeyType.cs
- Vector3D.cs
- SoapHeaderException.cs
- ComponentRenameEvent.cs
- ThreadStaticAttribute.cs
- IisTraceListener.cs
- SmiXetterAccessMap.cs
- MenuBindingsEditorForm.cs
- SQLBoolean.cs
- NetMsmqSecurityElement.cs
- StructuredCompositeActivityDesigner.cs
- ServicePointManagerElement.cs
- X500Name.cs
- ProcessRequestArgs.cs
- CompositeScriptReferenceEventArgs.cs
- RawKeyboardInputReport.cs
- EmptyStringExpandableObjectConverter.cs
- SqlFacetAttribute.cs
- EntityObject.cs
- XamlVector3DCollectionSerializer.cs
- HttpResponseHeader.cs
- DataDocumentXPathNavigator.cs
- AttributeUsageAttribute.cs
- LocalizableAttribute.cs
- HttpProcessUtility.cs
- ColumnCollection.cs
- DataGridViewSortCompareEventArgs.cs
- ClientSettingsProvider.cs
- Monitor.cs
- JsonCollectionDataContract.cs
- TagPrefixInfo.cs
- ArrangedElement.cs
- ColumnClickEvent.cs
- CodeGroup.cs
- GenericWebPart.cs
- SoapAttributeAttribute.cs
- TemplateFactory.cs
- TraceEventCache.cs
- Byte.cs
- Transactions.cs
- pingexception.cs
- assertwrapper.cs
- XmlEncodedRawTextWriter.cs
- XmlElementCollection.cs
- XomlCompilerHelpers.cs
- LicFileLicenseProvider.cs
- DependencyPropertyAttribute.cs