Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / clr / src / BCL / System / Runtime / CompilerServices / FixedBufferAttribute.cs / 1 / 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.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataGridViewCell.cs
- SrgsRule.cs
- TCPClient.cs
- ObjectCacheSettings.cs
- DataSpaceManager.cs
- OrthographicCamera.cs
- ValidatingPropertiesEventArgs.cs
- GenericTransactionFlowAttribute.cs
- StylusDevice.cs
- _FixedSizeReader.cs
- NativeWrapper.cs
- WindowsToolbarAsMenu.cs
- KnownTypeAttribute.cs
- DataSourceXmlAttributeAttribute.cs
- BitmapEffectGeneralTransform.cs
- LogEntrySerializer.cs
- Parameter.cs
- DataGridViewImageColumn.cs
- SBCSCodePageEncoding.cs
- DataColumnPropertyDescriptor.cs
- DbgCompiler.cs
- ButtonBaseAdapter.cs
- PeerServiceMessageContracts.cs
- propertyentry.cs
- ColumnTypeConverter.cs
- RuntimeConfig.cs
- ManualResetEvent.cs
- DrawListViewColumnHeaderEventArgs.cs
- DataServiceHostFactory.cs
- Opcode.cs
- ValueChangedEventManager.cs
- ShaperBuffers.cs
- LinqExpressionNormalizer.cs
- RegexTree.cs
- ToolStripDropDown.cs
- PrintControllerWithStatusDialog.cs
- RegexTypeEditor.cs
- FloatUtil.cs
- ExpressionPrinter.cs
- CallbackValidator.cs
- MediaPlayerState.cs
- GenerateScriptTypeAttribute.cs
- NativeMethods.cs
- SkipQueryOptionExpression.cs
- StructuredTypeInfo.cs
- MimeWriter.cs
- UserControlCodeDomTreeGenerator.cs
- DataGridViewComboBoxEditingControl.cs
- KoreanLunisolarCalendar.cs
- RunInstallerAttribute.cs
- KnownIds.cs
- BinaryWriter.cs
- DelegatedStream.cs
- WpfGeneratedKnownProperties.cs
- KoreanLunisolarCalendar.cs
- DataGridViewCellFormattingEventArgs.cs
- SqlCacheDependencyDatabase.cs
- Image.cs
- OrderByQueryOptionExpression.cs
- StaticTextPointer.cs
- ColumnWidthChangedEvent.cs
- ContractValidationHelper.cs
- WindowsNonControl.cs
- TextElementEnumerator.cs
- Base64Stream.cs
- _SSPISessionCache.cs
- DeviceFilterDictionary.cs
- ExpressionNode.cs
- XPathNodeList.cs
- LinearKeyFrames.cs
- HtmlEmptyTagControlBuilder.cs
- SecurityResources.cs
- ContextProperty.cs
- HtmlButton.cs
- QueryStringParameter.cs
- CryptoApi.cs
- Converter.cs
- ManagementQuery.cs
- ObjectConverter.cs
- DataGrid.cs
- VariableAction.cs
- HttpCacheParams.cs
- FontSizeConverter.cs
- BuilderPropertyEntry.cs
- StyleSheetDesigner.cs
- _ListenerAsyncResult.cs
- EntityDataReader.cs
- InputManager.cs
- FormsAuthenticationUserCollection.cs
- SqlWriter.cs
- GACIdentityPermission.cs
- FloaterBaseParagraph.cs
- DefaultTextStoreTextComposition.cs
- CustomGrammar.cs
- Processor.cs
- BuildDependencySet.cs
- SqlCommand.cs
- Scheduler.cs
- AspNetHostingPermission.cs
- BidOverLoads.cs