Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Runtime / CompilerServices / InternalsVisibleToAttribute.cs / 1305376 / InternalsVisibleToAttribute.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== //------------------------------------------------------------------------------ //----------------------------------------------------------------------------- namespace System.Runtime.CompilerServices { using System; [AttributeUsage(AttributeTargets.Assembly, AllowMultiple=true, Inherited=false)] public sealed class InternalsVisibleToAttribute : Attribute { private string _assemblyName; private bool _allInternalsVisible = true; public InternalsVisibleToAttribute(string assemblyName) { this._assemblyName = assemblyName; } public string AssemblyName { get { return _assemblyName; } } public bool AllInternalsVisible { get { return _allInternalsVisible; } set { _allInternalsVisible = value; } } } ////// If AllInternalsVisible is not true for a friend assembly, the FriendAccessAllowed attribute /// indicates which internals are shared with that friend assembly. /// [AttributeUsage(AttributeTargets.Class | AttributeTargets.Constructor | AttributeTargets.Enum | AttributeTargets.Event | AttributeTargets.Field | AttributeTargets.Interface | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Struct, AllowMultiple = false, Inherited = false)] [FriendAccessAllowed] internal sealed class FriendAccessAllowedAttribute : Attribute { } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== //------------------------------------------------------------------------------ //----------------------------------------------------------------------------- namespace System.Runtime.CompilerServices { using System; [AttributeUsage(AttributeTargets.Assembly, AllowMultiple=true, Inherited=false)] public sealed class InternalsVisibleToAttribute : Attribute { private string _assemblyName; private bool _allInternalsVisible = true; public InternalsVisibleToAttribute(string assemblyName) { this._assemblyName = assemblyName; } public string AssemblyName { get { return _assemblyName; } } public bool AllInternalsVisible { get { return _allInternalsVisible; } set { _allInternalsVisible = value; } } } ////// If AllInternalsVisible is not true for a friend assembly, the FriendAccessAllowed attribute /// indicates which internals are shared with that friend assembly. /// [AttributeUsage(AttributeTargets.Class | AttributeTargets.Constructor | AttributeTargets.Enum | AttributeTargets.Event | AttributeTargets.Field | AttributeTargets.Interface | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Struct, AllowMultiple = false, Inherited = false)] [FriendAccessAllowed] internal sealed class FriendAccessAllowedAttribute : Attribute { } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ComboBoxItem.cs
- ExternalDataExchangeClient.cs
- SafeLocalMemHandle.cs
- DataGridViewLayoutData.cs
- UnauthorizedAccessException.cs
- RecognitionEventArgs.cs
- CursorConverter.cs
- SmiEventSink.cs
- FormatterConverter.cs
- DesignerProperties.cs
- Encoder.cs
- SubstitutionDesigner.cs
- StrokeNodeEnumerator.cs
- MappingException.cs
- WebRequestModulesSection.cs
- xmlsaver.cs
- PartialTrustVisibleAssembliesSection.cs
- HttpChannelHelper.cs
- Cursor.cs
- RepeaterItem.cs
- HostVisual.cs
- XmlTextReader.cs
- DataGridViewDesigner.cs
- SqlDataSourceEnumerator.cs
- FileLoadException.cs
- CommittableTransaction.cs
- IpcChannelHelper.cs
- HyperLinkColumn.cs
- CompositionAdorner.cs
- UIElementParaClient.cs
- SessionPageStatePersister.cs
- FileDialog_Vista_Interop.cs
- TypeConverterAttribute.cs
- SqlCommand.cs
- FixedSOMImage.cs
- DataError.cs
- ExpressionBuilder.cs
- WmlValidationSummaryAdapter.cs
- PathFigure.cs
- BitHelper.cs
- NativeMethods.cs
- LogicalTreeHelper.cs
- WorkflowValidationFailedException.cs
- NameSpaceExtractor.cs
- QueryOperationResponseOfT.cs
- ActiveXMessageFormatter.cs
- FixedSOMImage.cs
- DispatchWrapper.cs
- WindowsFormsSynchronizationContext.cs
- SystemResourceKey.cs
- MetadataImporterQuotas.cs
- XmlSchemaInferenceException.cs
- ToolStripItemGlyph.cs
- ProcessStartInfo.cs
- DataControlPagerLinkButton.cs
- __ConsoleStream.cs
- ListControlDesigner.cs
- RankException.cs
- DeferredSelectedIndexReference.cs
- XmlnsCompatibleWithAttribute.cs
- DataObjectFieldAttribute.cs
- BlurEffect.cs
- XmlSchemaSimpleType.cs
- LongPath.cs
- DataGridViewUtilities.cs
- Exceptions.cs
- Scheduling.cs
- BinaryMethodMessage.cs
- StringResourceManager.cs
- wgx_commands.cs
- ListBox.cs
- EncryptedKeyIdentifierClause.cs
- WebPartTracker.cs
- MarkupExtensionSerializer.cs
- InvalidOleVariantTypeException.cs
- NavigationPropertySingletonExpression.cs
- StylusTip.cs
- UserControl.cs
- BindingMemberInfo.cs
- DataControlPagerLinkButton.cs
- SweepDirectionValidation.cs
- GridView.cs
- SecureConversationServiceElement.cs
- DropDownList.cs
- Matrix.cs
- MachineKeyConverter.cs
- Stackframe.cs
- EdmProviderManifest.cs
- DbConnectionPoolGroupProviderInfo.cs
- XmlTextReader.cs
- CodeBlockBuilder.cs
- StylusPointPropertyInfoDefaults.cs
- MenuAutomationPeer.cs
- MasterPageBuildProvider.cs
- XPathBinder.cs
- WindowsGraphics2.cs
- IgnoreFlushAndCloseStream.cs
- BitmapEffectGroup.cs
- HoistedLocals.cs
- RuntimeCompatibilityAttribute.cs