Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Runtime / CompilerServices / TypeForwardedToAttribute.cs / 1305376 / TypeForwardedToAttribute.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== using System; using System.Reflection; namespace System.Runtime.CompilerServices { using System; [AttributeUsage(AttributeTargets.Assembly, AllowMultiple=true, Inherited=false)] public sealed class TypeForwardedToAttribute : Attribute { private Type _destination; public TypeForwardedToAttribute(Type destination) { _destination = destination; } public Type Destination { get { return _destination; } } [System.Security.SecurityCritical] internal static TypeForwardedToAttribute[] GetCustomAttribute(RuntimeAssembly assembly) { Type[] types = null; RuntimeAssembly.GetForwardedTypes(assembly.GetNativeHandle(), JitHelpers.GetObjectHandleOnStack(ref types)); TypeForwardedToAttribute[] attributes = new TypeForwardedToAttribute[types.Length]; for (int i = 0; i < types.Length; ++i) attributes[i] = new TypeForwardedToAttribute(types[i]); return attributes; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== using System; using System.Reflection; namespace System.Runtime.CompilerServices { using System; [AttributeUsage(AttributeTargets.Assembly, AllowMultiple=true, Inherited=false)] public sealed class TypeForwardedToAttribute : Attribute { private Type _destination; public TypeForwardedToAttribute(Type destination) { _destination = destination; } public Type Destination { get { return _destination; } } [System.Security.SecurityCritical] internal static TypeForwardedToAttribute[] GetCustomAttribute(RuntimeAssembly assembly) { Type[] types = null; RuntimeAssembly.GetForwardedTypes(assembly.GetNativeHandle(), JitHelpers.GetObjectHandleOnStack(ref types)); TypeForwardedToAttribute[] attributes = new TypeForwardedToAttribute[types.Length]; for (int i = 0; i < types.Length; ++i) attributes[i] = new TypeForwardedToAttribute(types[i]); return attributes; } } } // 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
- ConfigurationErrorsException.cs
- GrammarBuilderPhrase.cs
- AssemblyBuilderData.cs
- FrameworkReadOnlyPropertyMetadata.cs
- StrokeDescriptor.cs
- COM2ComponentEditor.cs
- SrgsNameValueTag.cs
- CompilerResults.cs
- TileBrush.cs
- ParentControlDesigner.cs
- WindowsListViewScroll.cs
- TextViewBase.cs
- HtmlControl.cs
- ProcessModuleDesigner.cs
- ComponentChangedEvent.cs
- LinqDataSourceDeleteEventArgs.cs
- _RequestCacheProtocol.cs
- LocalizedNameDescriptionPair.cs
- SingleKeyFrameCollection.cs
- XPathItem.cs
- LinqDataSourceView.cs
- UpdateRecord.cs
- MDIClient.cs
- RayHitTestParameters.cs
- XmlDataImplementation.cs
- WSFederationHttpBinding.cs
- EntitySqlQueryCacheKey.cs
- SimpleLine.cs
- PointLight.cs
- SQLInt16Storage.cs
- NameValueConfigurationCollection.cs
- DataComponentMethodGenerator.cs
- ThrowHelper.cs
- DateTimeFormatInfoScanner.cs
- FileSystemWatcher.cs
- SessionPageStateSection.cs
- SystemDiagnosticsSection.cs
- DesignerTextBoxAdapter.cs
- CustomAttribute.cs
- Control.cs
- CultureSpecificCharacterBufferRange.cs
- Cursor.cs
- XmlSchemaParticle.cs
- HttpFileCollection.cs
- ConstructorBuilder.cs
- IxmlLineInfo.cs
- MimeBasePart.cs
- UpdatePanel.cs
- ObjectDataSourceSelectingEventArgs.cs
- ImageKeyConverter.cs
- BaseResourcesBuildProvider.cs
- LicenseContext.cs
- ChannelServices.cs
- FloaterParagraph.cs
- FieldNameLookup.cs
- ListSortDescription.cs
- ContentPlaceHolder.cs
- GridItemCollection.cs
- CollectionViewGroupRoot.cs
- ToolstripProfessionalRenderer.cs
- SchemaManager.cs
- EventRecord.cs
- RetriableClipboard.cs
- UpdatePanelTriggerCollection.cs
- DataBoundControl.cs
- SqlError.cs
- LinkLabel.cs
- RadioButtonBaseAdapter.cs
- HttpException.cs
- XmlReflectionImporter.cs
- XmlNamespaceMapping.cs
- DefaultEvaluationContext.cs
- BitmapEffectDrawing.cs
- PageCodeDomTreeGenerator.cs
- StaticResourceExtension.cs
- GridViewUpdatedEventArgs.cs
- HwndPanningFeedback.cs
- RowsCopiedEventArgs.cs
- HttpWriter.cs
- XPathParser.cs
- baseaxisquery.cs
- WebConfigurationManager.cs
- XpsPartBase.cs
- AddInController.cs
- ReflectionUtil.cs
- SamlSecurityTokenAuthenticator.cs
- InteropDesigner.xaml.cs
- BoolExpression.cs
- Window.cs
- TextRangeEdit.cs
- DrawingImage.cs
- ListView.cs
- counter.cs
- ArraySubsetEnumerator.cs
- InfoCardArgumentException.cs
- AnnotationDocumentPaginator.cs
- XmlSchemaGroupRef.cs
- ToggleButton.cs
- XmlnsDictionary.cs
- HttpCapabilitiesBase.cs