Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- ViewGenResults.cs
- PolyQuadraticBezierSegment.cs
- SQLDouble.cs
- Cursors.cs
- DrawingGroupDrawingContext.cs
- AnnotationComponentManager.cs
- MemberPath.cs
- XpsFilter.cs
- ImpersonationContext.cs
- nulltextcontainer.cs
- SqlHelper.cs
- ReliabilityContractAttribute.cs
- Int32Converter.cs
- TemplateControlBuildProvider.cs
- RepeaterDataBoundAdapter.cs
- PasswordDeriveBytes.cs
- Stack.cs
- ToolTipAutomationPeer.cs
- NavigationWindow.cs
- XmlSchemaIdentityConstraint.cs
- DataControlFieldCell.cs
- SqlAggregateChecker.cs
- ResourceReader.cs
- FileCodeGroup.cs
- DefaultAsyncDataDispatcher.cs
- ACL.cs
- PathFigureCollectionConverter.cs
- EntityViewGenerationAttribute.cs
- SqlOuterApplyReducer.cs
- MdImport.cs
- login.cs
- IconConverter.cs
- securitycriticaldataClass.cs
- LicFileLicenseProvider.cs
- ColorIndependentAnimationStorage.cs
- TokenizerHelper.cs
- PackWebRequest.cs
- SchemaLookupTable.cs
- PipelineDeploymentState.cs
- InternalMappingException.cs
- DrawingBrush.cs
- StringResourceManager.cs
- SessionIDManager.cs
- SoapException.cs
- SdlChannelSink.cs
- LocalFileSettingsProvider.cs
- PropertyPath.cs
- ACL.cs
- HostnameComparisonMode.cs
- MarshalByRefObject.cs
- _CacheStreams.cs
- PictureBox.cs
- FamilyCollection.cs
- SchemaDeclBase.cs
- CustomAttributeSerializer.cs
- WebEvents.cs
- TextSelectionHelper.cs
- BindingSourceDesigner.cs
- WindowShowOrOpenTracker.cs
- ExtensionQuery.cs
- MemberProjectedSlot.cs
- ApplicationTrust.cs
- RewritingSimplifier.cs
- InsufficientExecutionStackException.cs
- RightsManagementEncryptionTransform.cs
- IImplicitResourceProvider.cs
- PtsCache.cs
- HttpPostLocalhostServerProtocol.cs
- ApplicationServiceHelper.cs
- Button.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- OletxCommittableTransaction.cs
- TextSimpleMarkerProperties.cs
- PageContent.cs
- EdmMember.cs
- KeyValueSerializer.cs
- SmiEventSink_Default.cs
- TagNameToTypeMapper.cs
- XmlLinkedNode.cs
- LicenseContext.cs
- _HeaderInfo.cs
- MethodRental.cs
- XmlEntityReference.cs
- Set.cs
- CursorConverter.cs
- ViewManager.cs
- DesignerAdapterUtil.cs
- FunctionDescription.cs
- FileStream.cs
- AccessorTable.cs
- BlurEffect.cs
- RepeaterItemEventArgs.cs
- SslStream.cs
- PositiveTimeSpanValidator.cs
- GradientStop.cs
- TdsValueSetter.cs
- _FixedSizeReader.cs
- EntitySet.cs
- LinkClickEvent.cs
- WinFormsUtils.cs