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
- SqlParameter.cs
- unsafenativemethodsother.cs
- ConnectionStringsSection.cs
- DesignBindingPropertyDescriptor.cs
- SupportsEventValidationAttribute.cs
- SelectionRange.cs
- ListBase.cs
- TrustSection.cs
- BinaryConverter.cs
- CustomTokenProvider.cs
- WebBrowser.cs
- GorillaCodec.cs
- COM2PictureConverter.cs
- SynchronizationContext.cs
- WebPartConnectionsCancelEventArgs.cs
- xdrvalidator.cs
- MethodBuilder.cs
- SineEase.cs
- FormsAuthenticationCredentials.cs
- DataRowComparer.cs
- listitem.cs
- HttpResponseInternalBase.cs
- DesignerProperties.cs
- DoubleLinkList.cs
- TimerElapsedEvenArgs.cs
- CalendarModeChangedEventArgs.cs
- QueueSurrogate.cs
- EpmHelper.cs
- Stylesheet.cs
- InputMethodStateTypeInfo.cs
- cryptoapiTransform.cs
- ErrorsHelper.cs
- CodePageEncoding.cs
- DataGridViewSelectedColumnCollection.cs
- PointHitTestResult.cs
- LoginUtil.cs
- SystemBrushes.cs
- MenuItem.cs
- StorageFunctionMapping.cs
- PropertyConverter.cs
- PageRequestManager.cs
- RealProxy.cs
- IconHelper.cs
- NumericExpr.cs
- Socket.cs
- FolderLevelBuildProviderCollection.cs
- AttributeConverter.cs
- RtfToXamlReader.cs
- SqlBooleanizer.cs
- SelectionWordBreaker.cs
- DecimalKeyFrameCollection.cs
- PeerResolver.cs
- ChooseAction.cs
- TreeNodeStyle.cs
- TypeNameConverter.cs
- ToolStrip.cs
- RemoteWebConfigurationHostServer.cs
- UrlPropertyAttribute.cs
- StrokeFIndices.cs
- Gdiplus.cs
- KeyValueConfigurationElement.cs
- TcpAppDomainProtocolHandler.cs
- Rect.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- XPathNodeList.cs
- EditorServiceContext.cs
- MetadataSerializer.cs
- MetadataUtilsSmi.cs
- CacheChildrenQuery.cs
- TextParagraphCache.cs
- Model3DGroup.cs
- graph.cs
- Int32CollectionConverter.cs
- MenuAdapter.cs
- PrintControllerWithStatusDialog.cs
- BidOverLoads.cs
- CAGDesigner.cs
- ConfigUtil.cs
- HostingEnvironment.cs
- CacheAxisQuery.cs
- SiteMapNode.cs
- ParentQuery.cs
- milexports.cs
- FrameworkElement.cs
- ProcessHostConfigUtils.cs
- BindingCollection.cs
- RightsManagementPermission.cs
- ScriptReferenceBase.cs
- ComPlusContractBehavior.cs
- OleDbRowUpdatedEvent.cs
- PhysicalAddress.cs
- MemberDomainMap.cs
- AmbientLight.cs
- Sentence.cs
- Border.cs
- ManipulationStartedEventArgs.cs
- Expression.DebuggerProxy.cs
- DispatchWrapper.cs
- InheritanceUI.cs
- MessageQueueCriteria.cs