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
- ToolStripPanelSelectionGlyph.cs
- RbTree.cs
- CollectionDataContract.cs
- WebPartCancelEventArgs.cs
- SchemaNotation.cs
- StringUtil.cs
- OletxTransactionFormatter.cs
- MobileControlsSection.cs
- ExeContext.cs
- LocalizedNameDescriptionPair.cs
- LongMinMaxAggregationOperator.cs
- PeerEndPoint.cs
- DataSpaceManager.cs
- QueuePropertyVariants.cs
- ColumnMap.cs
- XmlSchemaAppInfo.cs
- DataControlField.cs
- StoreContentChangedEventArgs.cs
- ChangeTracker.cs
- ArgumentException.cs
- DecoderNLS.cs
- NameValueCollection.cs
- SqlTriggerContext.cs
- ObjectStateManager.cs
- BatchParser.cs
- XmlSchemaImporter.cs
- EdmFunction.cs
- FixedDocumentSequencePaginator.cs
- ThemeConfigurationDialog.cs
- FtpWebRequest.cs
- Pair.cs
- CommandPlan.cs
- EditorPartCollection.cs
- SafeProcessHandle.cs
- TrimSurroundingWhitespaceAttribute.cs
- ComNativeDescriptor.cs
- ToolStripAdornerWindowService.cs
- SortedDictionary.cs
- DataKeyArray.cs
- ParserExtension.cs
- StaticTextPointer.cs
- XmlSchemaInfo.cs
- PassportPrincipal.cs
- TableProviderWrapper.cs
- ToolStripGripRenderEventArgs.cs
- WindowsProgressbar.cs
- MostlySingletonList.cs
- Identifier.cs
- NativeMethods.cs
- Privilege.cs
- ServiceElementCollection.cs
- XsdCachingReader.cs
- PenLineJoinValidation.cs
- SqlClientMetaDataCollectionNames.cs
- FormViewInsertedEventArgs.cs
- AssertFilter.cs
- SamlSubjectStatement.cs
- ConnectionManagementElement.cs
- LinqDataSourceHelper.cs
- MSAAEventDispatcher.cs
- DateTimeValueSerializer.cs
- SizeChangedInfo.cs
- RewritingProcessor.cs
- ISessionStateStore.cs
- SelectionItemPattern.cs
- NumericUpDown.cs
- UpdatePanel.cs
- SqlTopReducer.cs
- DataBindingHandlerAttribute.cs
- BamlTreeUpdater.cs
- ListViewSelectEventArgs.cs
- RuleRefElement.cs
- Pair.cs
- TextEffectCollection.cs
- DataBinder.cs
- Math.cs
- sqlser.cs
- ApplicationException.cs
- InteropBitmapSource.cs
- DataSvcMapFileSerializer.cs
- XmlNode.cs
- ManagementEventArgs.cs
- EngineSiteSapi.cs
- XmlMtomWriter.cs
- StackOverflowException.cs
- NameValueConfigurationElement.cs
- OrderedHashRepartitionStream.cs
- XmlTextEncoder.cs
- TreeBuilderBamlTranslator.cs
- FormViewPagerRow.cs
- _SecureChannel.cs
- DataBindingHandlerAttribute.cs
- ObjectViewListener.cs
- PageSettings.cs
- FormsIdentity.cs
- SymbolEqualComparer.cs
- EventDescriptor.cs
- versioninfo.cs
- HtmlControl.cs
- BamlWriter.cs