Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Runtime / CompilerServices / FixedBufferAttribute.cs / 1305376 / FixedBufferAttribute.cs
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
/*============================================================
**
** Class: FixedBufferAttribute
**
** Purpose: Used by a compiler for generating value types
** in-place within other value types containing a certain
** number of elements of the given (primitive) type. Somewhat
** similar to P/Invoke's ByValTStr attribute.
** Used by C# with this syntax: "fixed int buffer[10];"
**
===========================================================*/
using System;
namespace System.Runtime.CompilerServices
{
[AttributeUsage(AttributeTargets.Field, Inherited=false)]
public sealed class FixedBufferAttribute : Attribute
{
private Type elementType;
private int length;
public FixedBufferAttribute(Type elementType, int length)
{
this.elementType = elementType;
this.length = length;
}
public Type ElementType {
get {
return elementType;
}
}
public int Length {
get {
return length;
}
}
}
}
// 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
- AsyncOperationContext.cs
- Color.cs
- DispatcherBuilder.cs
- ToolTip.cs
- SqlDataSourceFilteringEventArgs.cs
- CollectionConverter.cs
- shaper.cs
- DesignerActionListCollection.cs
- ReferenceEqualityComparer.cs
- BorderGapMaskConverter.cs
- SettingsProperty.cs
- XmlSchemaSimpleTypeList.cs
- MultiAsyncResult.cs
- HashHelper.cs
- SocketPermission.cs
- GreenMethods.cs
- MaskDescriptor.cs
- NotifyParentPropertyAttribute.cs
- ImageIndexConverter.cs
- SoapSchemaImporter.cs
- Query.cs
- WebPartExportVerb.cs
- LoginView.cs
- SamlAssertion.cs
- ListControl.cs
- DropSource.cs
- ClientTargetCollection.cs
- JsonQueryStringConverter.cs
- ControlIdConverter.cs
- XmlTextWriter.cs
- ControlFilterExpression.cs
- RoutedUICommand.cs
- EffectiveValueEntry.cs
- ReadOnlyDictionary.cs
- RowCache.cs
- OpCopier.cs
- GCHandleCookieTable.cs
- ConnectAlgorithms.cs
- RenamedEventArgs.cs
- AppDomainUnloadedException.cs
- UITypeEditor.cs
- HttpProtocolReflector.cs
- TriggerBase.cs
- CodeMethodMap.cs
- MapPathBasedVirtualPathProvider.cs
- ApplicationServiceHelper.cs
- ClientSession.cs
- AutomationProperties.cs
- ManipulationBoundaryFeedbackEventArgs.cs
- ToolStripItemCollection.cs
- _ContextAwareResult.cs
- BaseTemplateBuildProvider.cs
- SrgsText.cs
- XmlDataSourceDesigner.cs
- DataComponentNameHandler.cs
- UnsafeNativeMethodsCLR.cs
- InputReport.cs
- ChannelEndpointElementCollection.cs
- Interlocked.cs
- HttpModuleCollection.cs
- ReadOnlyCollectionBuilder.cs
- DbModificationCommandTree.cs
- PerfCounters.cs
- View.cs
- TypeCodeDomSerializer.cs
- SByteConverter.cs
- MemoryRecordBuffer.cs
- DeobfuscatingStream.cs
- FrameworkElement.cs
- HashJoinQueryOperatorEnumerator.cs
- FontSizeConverter.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- HtmlProps.cs
- StatusBarAutomationPeer.cs
- AutoResetEvent.cs
- CryptoConfig.cs
- ParseElementCollection.cs
- shaper.cs
- VSWCFServiceContractGenerator.cs
- SmtpNegotiateAuthenticationModule.cs
- FormatException.cs
- Size.cs
- FontCacheLogic.cs
- CrossContextChannel.cs
- QueryExpression.cs
- DataGridLinkButton.cs
- DbTransaction.cs
- CommandSet.cs
- _AcceptOverlappedAsyncResult.cs
- DeflateEmulationStream.cs
- CustomValidator.cs
- sqlstateclientmanager.cs
- CacheOutputQuery.cs
- DataContext.cs
- UDPClient.cs
- DynamicResourceExtension.cs
- AdvancedBindingPropertyDescriptor.cs
- ControlPropertyNameConverter.cs
- versioninfo.cs
- Solver.cs