Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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.
//
// ==--==
/*============================================================
**
** 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
- NamedPipeProcessProtocolHandler.cs
- XmlChildNodes.cs
- _TransmitFileOverlappedAsyncResult.cs
- ClockGroup.cs
- AsyncContentLoadedEventArgs.cs
- UnicastIPAddressInformationCollection.cs
- SqlMethods.cs
- DragEventArgs.cs
- ApplicationFileParser.cs
- SystemTcpConnection.cs
- ContentTextAutomationPeer.cs
- PropertyRef.cs
- ToolboxComponentsCreatingEventArgs.cs
- HtmlFormParameterWriter.cs
- RegionInfo.cs
- ResourceReferenceExpressionConverter.cs
- ReferenceConverter.cs
- DataSysAttribute.cs
- NavigationProperty.cs
- AsmxEndpointPickerExtension.cs
- CriticalHandle.cs
- CompositeControl.cs
- TypeValidationEventArgs.cs
- InvokeHandlers.cs
- ErrorsHelper.cs
- DesignerEditorPartChrome.cs
- keycontainerpermission.cs
- DiffuseMaterial.cs
- CustomPopupPlacement.cs
- PassportAuthenticationModule.cs
- TextModifier.cs
- FrameworkContentElement.cs
- XsdBuilder.cs
- SiteMapDataSourceView.cs
- VoiceInfo.cs
- List.cs
- NativeMethods.cs
- CustomAttributeBuilder.cs
- GridViewUpdatedEventArgs.cs
- RuntimeHandles.cs
- _SslState.cs
- SyndicationDeserializer.cs
- EncodingTable.cs
- ControlAdapter.cs
- MailAddressCollection.cs
- FieldDescriptor.cs
- ObjectQueryProvider.cs
- ToolStripLocationCancelEventArgs.cs
- DependencyObjectType.cs
- COM2PropertyDescriptor.cs
- WebPartConnectionCollection.cs
- TimelineGroup.cs
- TextProperties.cs
- ParentQuery.cs
- SatelliteContractVersionAttribute.cs
- CustomValidator.cs
- DetailsViewRow.cs
- Update.cs
- DesignerAttributeInfo.cs
- AssociationTypeEmitter.cs
- ColorAnimationUsingKeyFrames.cs
- KnownTypeDataContractResolver.cs
- SafeLocalAllocation.cs
- ShaderEffect.cs
- Helper.cs
- ResourceSet.cs
- LazyLoadBehavior.cs
- PromptStyle.cs
- sqlstateclientmanager.cs
- TextEditorParagraphs.cs
- WizardPanel.cs
- MsmqHostedTransportManager.cs
- SchemaNames.cs
- ToolStripSplitStackLayout.cs
- CreateParams.cs
- ToolStripDropDownItem.cs
- BufferedWebEventProvider.cs
- SortAction.cs
- FontSource.cs
- AdornerHitTestResult.cs
- AuthenticationService.cs
- FormsAuthenticationUser.cs
- TextMessageEncodingBindingElement.cs
- XmlWriterTraceListener.cs
- TextRange.cs
- GetIsBrowserClientRequest.cs
- OutArgumentConverter.cs
- storepermissionattribute.cs
- SimpleHandlerBuildProvider.cs
- FindProgressChangedEventArgs.cs
- ItemCheckEvent.cs
- DataSourceCollectionBase.cs
- Int32AnimationBase.cs
- ConsumerConnectionPointCollection.cs
- DiscoveryInnerClientAdhoc11.cs
- MarginsConverter.cs
- DesignRelationCollection.cs
- SafeArchiveContext.cs
- CommandSet.cs
- BehaviorEditorPart.cs