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
- NullEntityWrapper.cs
- SqlUtil.cs
- DebuggerAttributes.cs
- TemporaryBitmapFile.cs
- EventProperty.cs
- ValidationErrorEventArgs.cs
- MatrixTransform3D.cs
- ServiceModelConfigurationElementCollection.cs
- Random.cs
- CallSiteOps.cs
- JsonDeserializer.cs
- PositiveTimeSpanValidator.cs
- MarkupCompilePass2.cs
- PropertyConverter.cs
- PasswordRecovery.cs
- WebPartEventArgs.cs
- Hex.cs
- SpecialTypeDataContract.cs
- InitializerFacet.cs
- Slider.cs
- Rectangle.cs
- CallSiteOps.cs
- InvalidCastException.cs
- ActionFrame.cs
- SqlNode.cs
- filewebrequest.cs
- DataPagerFieldCommandEventArgs.cs
- RegionIterator.cs
- ConfigurationSettings.cs
- DrawingDrawingContext.cs
- DiscriminatorMap.cs
- EditingMode.cs
- securestring.cs
- IriParsingElement.cs
- GridViewRowEventArgs.cs
- KeyedByTypeCollection.cs
- BidirectionalDictionary.cs
- ValidatorCompatibilityHelper.cs
- NameValueConfigurationElement.cs
- TrustLevel.cs
- BindingFormattingDialog.cs
- CriticalExceptions.cs
- BulletDecorator.cs
- SqlDataSourceSummaryPanel.cs
- ClickablePoint.cs
- XPathDocumentBuilder.cs
- DataViewManager.cs
- AssertSection.cs
- SerializationSectionGroup.cs
- CommandTreeTypeHelper.cs
- SqlNodeTypeOperators.cs
- ContractComponent.cs
- RangeValidator.cs
- SmiTypedGetterSetter.cs
- ResourceWriter.cs
- AutomationElement.cs
- QuerySubExprEliminator.cs
- SettingsProperty.cs
- PackWebRequest.cs
- GridViewColumn.cs
- WSSecureConversation.cs
- FileUtil.cs
- RegexParser.cs
- MachineSettingsSection.cs
- hwndwrapper.cs
- ImageSource.cs
- Calendar.cs
- ProxyWebPartManager.cs
- RelationshipConverter.cs
- MembershipSection.cs
- EventHandlersStore.cs
- SmiGettersStream.cs
- ComponentDispatcher.cs
- TraceUtils.cs
- CrossAppDomainChannel.cs
- StyleCollectionEditor.cs
- SqlMultiplexer.cs
- WebServiceTypeData.cs
- PanelStyle.cs
- Matrix3DStack.cs
- RemoteWebConfigurationHost.cs
- EnvironmentPermission.cs
- PartialTrustVisibleAssembliesSection.cs
- FileSystemWatcher.cs
- PropertyNames.cs
- Expr.cs
- PageEventArgs.cs
- UserInitiatedRoutedEventPermissionAttribute.cs
- DbProviderConfigurationHandler.cs
- ListBox.cs
- HttpStreamFormatter.cs
- ResXResourceWriter.cs
- GridViewRow.cs
- GlyphCache.cs
- ExpressionBinding.cs
- SimplePropertyEntry.cs
- DecimalFormatter.cs
- WebPartAuthorizationEventArgs.cs
- ToolCreatedEventArgs.cs
- OdbcStatementHandle.cs