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
- TypeReference.cs
- XmlSchemaAttributeGroupRef.cs
- DeviceSpecific.cs
- CustomError.cs
- AudioStateChangedEventArgs.cs
- LinearGradientBrush.cs
- FilteredAttributeCollection.cs
- HitTestParameters3D.cs
- MetafileHeaderEmf.cs
- BinaryMethodMessage.cs
- StyleHelper.cs
- CallContext.cs
- ProxyWebPartManager.cs
- SvcMapFileSerializer.cs
- HttpFileCollection.cs
- StatusBarAutomationPeer.cs
- CssTextWriter.cs
- Pkcs9Attribute.cs
- MessageSmuggler.cs
- MethodImplAttribute.cs
- BamlTreeNode.cs
- ToolStripSplitButton.cs
- LogManagementAsyncResult.cs
- DataColumn.cs
- TextPenaltyModule.cs
- DefaultMemberAttribute.cs
- SerializationFieldInfo.cs
- ProviderConnectionPointCollection.cs
- ConfigurationStrings.cs
- Classification.cs
- LongTypeConverter.cs
- ChangeBlockUndoRecord.cs
- Util.cs
- AppLevelCompilationSectionCache.cs
- NumericUpDown.cs
- basemetadatamappingvisitor.cs
- ConfigXmlCDataSection.cs
- TreeNodeStyleCollection.cs
- Point.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- MouseGestureConverter.cs
- PageStatePersister.cs
- QilXmlWriter.cs
- FindCriteria.cs
- ManagedFilter.cs
- Int32Animation.cs
- SettingsPropertyIsReadOnlyException.cs
- MatrixTransform3D.cs
- ManagementObjectCollection.cs
- QueryOptionExpression.cs
- MenuAdapter.cs
- PageCatalogPart.cs
- BoundColumn.cs
- ActiveXContainer.cs
- XmlDataSource.cs
- StyleCollectionEditor.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- ThreadSafeMessageFilterTable.cs
- Soap.cs
- IntMinMaxAggregationOperator.cs
- RegexGroupCollection.cs
- Normalizer.cs
- InternalSafeNativeMethods.cs
- LoginDesigner.cs
- LostFocusEventManager.cs
- InfoCardBinaryReader.cs
- RequestDescription.cs
- exports.cs
- XmlDataSource.cs
- FontFamilyValueSerializer.cs
- ClientConfigurationHost.cs
- IriParsingElement.cs
- Brush.cs
- TypeUtils.cs
- VBIdentifierDesigner.xaml.cs
- Point.cs
- BrushValueSerializer.cs
- AsyncStreamReader.cs
- GridViewDesigner.cs
- ParameterBuilder.cs
- UpdatePanelTrigger.cs
- CodeEventReferenceExpression.cs
- Stackframe.cs
- RotationValidation.cs
- SecureStringHasher.cs
- PnrpPermission.cs
- InstanceHandleReference.cs
- FormsAuthentication.cs
- RadioButton.cs
- InputChannelAcceptor.cs
- TextRunTypographyProperties.cs
- StringComparer.cs
- securestring.cs
- PipeStream.cs
- SQLDateTime.cs
- MenuItemStyleCollection.cs
- TextAutomationPeer.cs
- HwndStylusInputProvider.cs
- AdRotator.cs
- SafeReversePInvokeHandle.cs