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
- DataSourceBooleanViewSchemaConverter.cs
- XmlSchemaImporter.cs
- ScrollData.cs
- TraceAsyncResult.cs
- DataRowExtensions.cs
- RootBuilder.cs
- Hashtable.cs
- InheritanceContextChangedEventManager.cs
- FileDialog_Vista.cs
- ProvideValueServiceProvider.cs
- CacheDependency.cs
- AVElementHelper.cs
- BulletedListEventArgs.cs
- UrlMappingsModule.cs
- KeyValuePair.cs
- WebControlAdapter.cs
- TextWriter.cs
- CustomAttribute.cs
- PictureBoxDesigner.cs
- ResourceSet.cs
- StringPropertyBuilder.cs
- ObservableDictionary.cs
- VariantWrapper.cs
- DynamicDocumentPaginator.cs
- HttpUnhandledOperationInvoker.cs
- DbConnectionStringBuilder.cs
- TargetInvocationException.cs
- HtmlLiteralTextAdapter.cs
- FullTextLine.cs
- xsdvalidator.cs
- CharStorage.cs
- HostExecutionContextManager.cs
- OperationCanceledException.cs
- ItemAutomationPeer.cs
- Label.cs
- CodeTypeMember.cs
- ThumbButtonInfoCollection.cs
- ObjectItemLoadingSessionData.cs
- Function.cs
- CopyNamespacesAction.cs
- IpcClientChannel.cs
- TextTreeText.cs
- QuestionEventArgs.cs
- DeflateEmulationStream.cs
- SystemResourceHost.cs
- ArcSegment.cs
- DataGridViewColumnEventArgs.cs
- TreeNodeBindingCollection.cs
- ReferencedAssemblyResolver.cs
- PasswordRecovery.cs
- HttpProxyTransportBindingElement.cs
- InvalidProgramException.cs
- NonceCache.cs
- ProfileEventArgs.cs
- ModuleBuilderData.cs
- ArglessEventHandlerProxy.cs
- Trace.cs
- Hashtable.cs
- OperationDescription.cs
- BuildProviderAppliesToAttribute.cs
- OdbcParameter.cs
- SqlDataSourceCommandEventArgs.cs
- MatrixIndependentAnimationStorage.cs
- KeySpline.cs
- TypeRefElement.cs
- SqlMethodAttribute.cs
- DefaultBindingPropertyAttribute.cs
- XamlTypeMapperSchemaContext.cs
- DataGridViewCellValueEventArgs.cs
- PreviewKeyDownEventArgs.cs
- ComplexLine.cs
- DataPager.cs
- ExeContext.cs
- FixUp.cs
- VariableQuery.cs
- Table.cs
- IPipelineRuntime.cs
- XmlDataFileEditor.cs
- SpecialFolderEnumConverter.cs
- Span.cs
- InputGestureCollection.cs
- AsymmetricKeyExchangeDeformatter.cs
- AmbiguousMatchException.cs
- AnimationException.cs
- RelatedPropertyManager.cs
- _NestedMultipleAsyncResult.cs
- DoubleLinkList.cs
- DataGridAutomationPeer.cs
- ToolStripRenderer.cs
- ParameterModifier.cs
- ProxyWebPartManager.cs
- XPathDescendantIterator.cs
- TypeConverter.cs
- ColorContextHelper.cs
- ColumnPropertiesGroup.cs
- WebRequest.cs
- SecurityTraceRecordHelper.cs
- TemplateComponentConnector.cs
- WeakReference.cs
- DataGridViewCellCollection.cs