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
- PointAnimation.cs
- __ConsoleStream.cs
- Subordinate.cs
- RequestSecurityTokenSerializer.cs
- XhtmlTextWriter.cs
- MarshalDirectiveException.cs
- KeyValuePairs.cs
- ComponentChangedEvent.cs
- MaterialGroup.cs
- MyContact.cs
- LeafCellTreeNode.cs
- CodeNamespace.cs
- SoapObjectInfo.cs
- BezierSegment.cs
- TransactionManager.cs
- ProfileParameter.cs
- ResolveMatchesApril2005.cs
- TitleStyle.cs
- ContextMenu.cs
- DataSourceControlBuilder.cs
- WindowsSpinner.cs
- FormDesigner.cs
- HttpsTransportBindingElement.cs
- WebPartsPersonalization.cs
- HostingEnvironmentSection.cs
- ProviderCommandInfoUtils.cs
- PixelFormats.cs
- DataColumnPropertyDescriptor.cs
- XmlBinaryReader.cs
- ThreadLocal.cs
- ChtmlTextBoxAdapter.cs
- SettingsPropertyCollection.cs
- CommandDevice.cs
- TerminatorSinks.cs
- SoapExtensionTypeElement.cs
- Attributes.cs
- PanningMessageFilter.cs
- GlobalProxySelection.cs
- ToolboxItem.cs
- SecurityImpersonationBehavior.cs
- ZipFileInfo.cs
- ITextView.cs
- TreeNode.cs
- XmlWriterSettings.cs
- Select.cs
- ZoneButton.cs
- Journal.cs
- ExpressionStringBuilder.cs
- Publisher.cs
- SystemInfo.cs
- WizardPanel.cs
- ClientUtils.cs
- WindowsMenu.cs
- MsmqHostedTransportManager.cs
- PrivilegedConfigurationManager.cs
- ColumnResizeUndoUnit.cs
- Italic.cs
- MonthCalendarDesigner.cs
- X509PeerCertificateAuthenticationElement.cs
- ContentElement.cs
- IsolatedStorageFilePermission.cs
- DataGridViewCellStyleConverter.cs
- CachedTypeface.cs
- _TimerThread.cs
- peernodeimplementation.cs
- exports.cs
- ToolStripContainer.cs
- DataGridView.cs
- querybuilder.cs
- AnnotationResourceCollection.cs
- WebHeaderCollection.cs
- CodeMethodReturnStatement.cs
- __FastResourceComparer.cs
- dbdatarecord.cs
- ObjectStorage.cs
- PerfCounterSection.cs
- entitydatasourceentitysetnameconverter.cs
- ResourceAssociationSet.cs
- ReceiveContext.cs
- serverconfig.cs
- InputMethodStateTypeInfo.cs
- PrimarySelectionAdorner.cs
- OleAutBinder.cs
- ModifierKeysConverter.cs
- RequestCachingSection.cs
- WebHttpElement.cs
- InvalidWMPVersionException.cs
- Win32.cs
- HtmlTernaryTree.cs
- SubMenuStyle.cs
- OleDbRowUpdatedEvent.cs
- ForceCopyBuildProvider.cs
- Evidence.cs
- _LazyAsyncResult.cs
- HashSetDebugView.cs
- EditingCommands.cs
- XmlKeywords.cs
- FontStretchConverter.cs
- HttpListenerContext.cs
- WebBrowserContainer.cs