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
- Clock.cs
- MappingItemCollection.cs
- TableParaClient.cs
- TemplateControlBuildProvider.cs
- PageStatePersister.cs
- CqlLexer.cs
- AddInController.cs
- WebFormDesignerActionService.cs
- ColumnCollection.cs
- WebPartDisplayModeCancelEventArgs.cs
- RowUpdatingEventArgs.cs
- Schema.cs
- ParserHooks.cs
- SQLSingleStorage.cs
- DataServices.cs
- BooleanAnimationUsingKeyFrames.cs
- GroupItem.cs
- TraceRecords.cs
- ValueConversionAttribute.cs
- ProfileParameter.cs
- DesignerCategoryAttribute.cs
- BinHexEncoder.cs
- SendMailErrorEventArgs.cs
- PeerDefaultCustomResolverClient.cs
- TreeIterators.cs
- _SslStream.cs
- LinkTarget.cs
- LocationEnvironment.cs
- MtomMessageEncoder.cs
- HorizontalAlignConverter.cs
- ColumnMap.cs
- TreeViewCancelEvent.cs
- IsolatedStorage.cs
- PageStatePersister.cs
- DynamicDocumentPaginator.cs
- CultureInfo.cs
- AttachedPropertyBrowsableAttribute.cs
- PeerUnsafeNativeCryptMethods.cs
- CodeAttributeArgument.cs
- invalidudtexception.cs
- UnsafeNativeMethods.cs
- DispatchWrapper.cs
- InvalidDataException.cs
- SectionUpdates.cs
- ClientConfigPaths.cs
- Light.cs
- EmptyControlCollection.cs
- externdll.cs
- ProxyGenerator.cs
- XdrBuilder.cs
- TableDetailsRow.cs
- WebBrowser.cs
- HttpDictionary.cs
- PolyQuadraticBezierSegment.cs
- TypeViewSchema.cs
- Baml2006KeyRecord.cs
- ManipulationInertiaStartingEventArgs.cs
- ResourceCategoryAttribute.cs
- UpdateTranslator.cs
- SecurityContextTokenValidationException.cs
- ScriptingAuthenticationServiceSection.cs
- CompilationLock.cs
- MultilineStringConverter.cs
- AssemblyFilter.cs
- Thumb.cs
- XmlUrlResolver.cs
- LicenseProviderAttribute.cs
- FormatterConverter.cs
- EnumBuilder.cs
- RuntimeVariableList.cs
- ReferencedType.cs
- TimelineGroup.cs
- TrayIconDesigner.cs
- Paragraph.cs
- PartialList.cs
- ChannelBase.cs
- ConsoleTraceListener.cs
- EventLogStatus.cs
- RecommendedAsConfigurableAttribute.cs
- TreeNode.cs
- CustomCategoryAttribute.cs
- WindowsRebar.cs
- IUnknownConstantAttribute.cs
- LessThanOrEqual.cs
- SafeNativeMethods.cs
- LicenseContext.cs
- PreservationFileWriter.cs
- ColumnMapTranslator.cs
- WebGetAttribute.cs
- CommandEventArgs.cs
- PriorityBinding.cs
- RectangleF.cs
- documentsequencetextview.cs
- PasswordBoxAutomationPeer.cs
- InputReferenceExpression.cs
- Highlights.cs
- ChtmlLinkAdapter.cs
- Model3D.cs
- NameObjectCollectionBase.cs
- Crc32.cs