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
- DocumentReferenceCollection.cs
- ProfileSection.cs
- CdpEqualityComparer.cs
- TimeIntervalCollection.cs
- CatalogZoneBase.cs
- designeractionbehavior.cs
- FilePrompt.cs
- XmlRootAttribute.cs
- Command.cs
- BamlBinaryWriter.cs
- WhereQueryOperator.cs
- XmlSignatureManifest.cs
- WebFormsRootDesigner.cs
- ManifestSignatureInformation.cs
- BamlLocalizabilityResolver.cs
- CqlIdentifiers.cs
- BadImageFormatException.cs
- OpacityConverter.cs
- TableRow.cs
- WebBrowsableAttribute.cs
- RangeContentEnumerator.cs
- Environment.cs
- XmlSchemaAnnotated.cs
- AbandonedMutexException.cs
- TypeDescriptionProviderAttribute.cs
- PersonalizationAdministration.cs
- LocalClientSecuritySettings.cs
- PagerSettings.cs
- Animatable.cs
- TriggerCollection.cs
- ColorConvertedBitmap.cs
- FloaterParagraph.cs
- CipherData.cs
- ToolboxComponentsCreatedEventArgs.cs
- PlatformCulture.cs
- DiscoveryClientReferences.cs
- PropertyGeneratedEventArgs.cs
- TextRunProperties.cs
- DataContext.cs
- EventHandlersDesigner.cs
- DrawingContextDrawingContextWalker.cs
- PrimaryKeyTypeConverter.cs
- SqlProfileProvider.cs
- OleDbCommand.cs
- DrawingGroup.cs
- XmlSchemaSimpleTypeUnion.cs
- RegexCompilationInfo.cs
- followingquery.cs
- EntityDataSourceUtil.cs
- SoapInteropTypes.cs
- Pair.cs
- ToolStripItem.cs
- IncrementalCompileAnalyzer.cs
- TimeSpanValidator.cs
- FrameworkElementFactoryMarkupObject.cs
- ScrollProperties.cs
- BamlLocalizationDictionary.cs
- MemoryFailPoint.cs
- AudioException.cs
- RelationshipDetailsRow.cs
- datacache.cs
- ThicknessAnimationBase.cs
- SQLDouble.cs
- BodyGlyph.cs
- GeometryCollection.cs
- TextRenderer.cs
- PanelStyle.cs
- DiscoveryViaBehavior.cs
- TextBox.cs
- Decimal.cs
- SmiGettersStream.cs
- CommandExpr.cs
- ProcessProtocolHandler.cs
- OleDbParameterCollection.cs
- AngleUtil.cs
- DatasetMethodGenerator.cs
- DoubleCollectionConverter.cs
- DrawingBrush.cs
- SvcMapFile.cs
- ViewPort3D.cs
- BitmapMetadataBlob.cs
- EnvelopedPkcs7.cs
- PresentationAppDomainManager.cs
- SchemaImporter.cs
- UrlMappingsModule.cs
- AggregateNode.cs
- OracleInternalConnection.cs
- GeneralTransform3DTo2D.cs
- StandardBindingElementCollection.cs
- AnnotationHighlightLayer.cs
- CompositionAdorner.cs
- SafeTimerHandle.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- AmbientValueAttribute.cs
- ModelFunctionTypeElement.cs
- StringDictionaryEditor.cs
- ValidateNames.cs
- UIElement3D.cs
- ProcessModule.cs
- TypeDescriptionProvider.cs