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
- BaseInfoTable.cs
- StylusCaptureWithinProperty.cs
- NativeMethodsCLR.cs
- DbConnectionPoolCounters.cs
- FlowDocument.cs
- Version.cs
- AmbiguousMatchException.cs
- SamlSecurityTokenAuthenticator.cs
- Section.cs
- ConfigurationSchemaErrors.cs
- IdentityModelDictionary.cs
- InstanceData.cs
- CustomPopupPlacement.cs
- TcpConnectionPoolSettings.cs
- xamlnodes.cs
- HttpConfigurationContext.cs
- DataGridViewCellCancelEventArgs.cs
- AnnotationAdorner.cs
- XmlSerializerOperationGenerator.cs
- _ContextAwareResult.cs
- BinaryOperationBinder.cs
- BaseTemplatedMobileComponentEditor.cs
- sqlmetadatafactory.cs
- UnlockCardRequest.cs
- XmlAutoDetectWriter.cs
- GradientStopCollection.cs
- OutOfProcStateClientManager.cs
- CounterCreationDataCollection.cs
- QilParameter.cs
- MimeFormImporter.cs
- UniqueEventHelper.cs
- MenuRenderer.cs
- _SafeNetHandles.cs
- JsonClassDataContract.cs
- VirtualDirectoryMapping.cs
- Crypto.cs
- EntityClassGenerator.cs
- RawTextInputReport.cs
- AttributedMetaModel.cs
- BaseParaClient.cs
- ObjectParameterCollection.cs
- ObjectConverter.cs
- MulticastNotSupportedException.cs
- StateMachineExecutionState.cs
- WindowsGraphics2.cs
- InfiniteIntConverter.cs
- DataContractJsonSerializer.cs
- SqlTypesSchemaImporter.cs
- GuidelineCollection.cs
- WsdlWriter.cs
- DataGridViewRowStateChangedEventArgs.cs
- Part.cs
- SQLResource.cs
- SqlLiftWhereClauses.cs
- InvokeProviderWrapper.cs
- InputBinder.cs
- SqlVisitor.cs
- FilterEventArgs.cs
- FlowDocumentPage.cs
- mongolianshape.cs
- EnterpriseServicesHelper.cs
- ProtocolViolationException.cs
- ComponentResourceKeyConverter.cs
- ColorPalette.cs
- Stopwatch.cs
- TranslateTransform3D.cs
- ColorConverter.cs
- PasswordBox.cs
- ChildTable.cs
- RuleSettingsCollection.cs
- XmlAttributeAttribute.cs
- HashSet.cs
- RootBrowserWindow.cs
- ColorAnimationBase.cs
- OdbcConnectionStringbuilder.cs
- DESCryptoServiceProvider.cs
- _SSPIWrapper.cs
- DtdParser.cs
- DataGridHelper.cs
- EndpointAddressProcessor.cs
- GeometryGroup.cs
- ArraySegment.cs
- ObfuscateAssemblyAttribute.cs
- RepeatButtonAutomationPeer.cs
- AmbientValueAttribute.cs
- WeakHashtable.cs
- AddInAdapter.cs
- DateTimePicker.cs
- GlyphsSerializer.cs
- PostBackOptions.cs
- PropertyHelper.cs
- RegexCode.cs
- SafeFileHandle.cs
- Int32CollectionValueSerializer.cs
- FileDialogCustomPlace.cs
- ObjectSet.cs
- DrawingAttributeSerializer.cs
- ReferencedCollectionType.cs
- TrustSection.cs
- DrawTreeNodeEventArgs.cs