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
- HwndTarget.cs
- RankException.cs
- ThousandthOfEmRealDoubles.cs
- Padding.cs
- TextParaClient.cs
- _AutoWebProxyScriptWrapper.cs
- LinkLabelLinkClickedEvent.cs
- util.cs
- VideoDrawing.cs
- ExportException.cs
- AttributeXamlType.cs
- UnsignedPublishLicense.cs
- HebrewNumber.cs
- OverflowException.cs
- XsdValidatingReader.cs
- BridgeDataRecord.cs
- ReaderContextStackData.cs
- OleDbDataAdapter.cs
- ColorTranslator.cs
- PropertyNames.cs
- ReflectTypeDescriptionProvider.cs
- CryptoKeySecurity.cs
- followingquery.cs
- AliasedSlot.cs
- TreeViewDesigner.cs
- ActivityContext.cs
- MonitorWrapper.cs
- ViewPort3D.cs
- RegexCaptureCollection.cs
- ModelEditingScope.cs
- DataGridLengthConverter.cs
- DataStorage.cs
- IDQuery.cs
- NamespaceEmitter.cs
- DomNameTable.cs
- AnimationException.cs
- DecimalConstantAttribute.cs
- ProfileEventArgs.cs
- AuthenticationException.cs
- FixedNode.cs
- SHA1CryptoServiceProvider.cs
- RequestCachePolicy.cs
- KeyFrames.cs
- MenuAutomationPeer.cs
- RightsDocument.cs
- ElementMarkupObject.cs
- Decorator.cs
- X509Certificate.cs
- ComboBoxRenderer.cs
- BitmapFrameEncode.cs
- Root.cs
- DrawToolTipEventArgs.cs
- StringExpressionSet.cs
- ParameterBinding.cs
- InlineUIContainer.cs
- WorkflowMessageEventArgs.cs
- OutgoingWebResponseContext.cs
- DatatypeImplementation.cs
- hresults.cs
- ContainerUtilities.cs
- QilList.cs
- ToolStripContentPanel.cs
- AttributedMetaModel.cs
- HttpSessionStateBase.cs
- CssStyleCollection.cs
- SmiEventSink.cs
- SessionSymmetricMessageSecurityProtocolFactory.cs
- ImplicitInputBrush.cs
- CallSiteOps.cs
- WebPartDisplayModeCancelEventArgs.cs
- PropertyDescriptorComparer.cs
- Subset.cs
- GenerateTemporaryTargetAssembly.cs
- ScriptManager.cs
- DataTableReader.cs
- TypeViewSchema.cs
- SqlDependencyListener.cs
- HttpContext.cs
- LingerOption.cs
- DNS.cs
- ServiceNameCollection.cs
- ProxyElement.cs
- HtmlTableCell.cs
- And.cs
- GetPageCompletedEventArgs.cs
- ToolboxControl.cs
- JsonDeserializer.cs
- UInt32Storage.cs
- LoginName.cs
- ByteAnimationBase.cs
- HttpWriter.cs
- XmlCharCheckingReader.cs
- SqlConnectionPoolProviderInfo.cs
- CaseCqlBlock.cs
- Publisher.cs
- SetStateDesigner.cs
- OdbcParameterCollection.cs
- Comparer.cs
- AssociationTypeEmitter.cs
- WrapPanel.cs