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
- ReflectionTypeLoadException.cs
- QueuePathDialog.cs
- FaultFormatter.cs
- ColumnResizeUndoUnit.cs
- TypeNameConverter.cs
- NavigationCommands.cs
- GeometryHitTestParameters.cs
- DrawTreeNodeEventArgs.cs
- XmlSchema.cs
- XmlReflectionMember.cs
- ProgressBarRenderer.cs
- CodeNamespace.cs
- CompilerWrapper.cs
- Int32RectConverter.cs
- LoginStatusDesigner.cs
- BitmapCodecInfoInternal.cs
- webeventbuffer.cs
- FixedSOMTableRow.cs
- HtmlHead.cs
- Rijndael.cs
- ThreadSafeMessageFilterTable.cs
- PropertyToken.cs
- EncryptedKey.cs
- ParseNumbers.cs
- BamlLocalizationDictionary.cs
- CompModSwitches.cs
- IteratorDescriptor.cs
- _UncName.cs
- DbExpressionRules.cs
- SqlCacheDependencySection.cs
- MediaPlayer.cs
- LinkButton.cs
- BindingManagerDataErrorEventArgs.cs
- X500Name.cs
- SqlResolver.cs
- Html32TextWriter.cs
- MimeMapping.cs
- ImageAutomationPeer.cs
- NamespaceList.cs
- MeasurementDCInfo.cs
- BrushConverter.cs
- OleDbDataReader.cs
- WebPartTransformer.cs
- FontSourceCollection.cs
- XPathMultyIterator.cs
- ExpandedWrapper.cs
- AccessKeyManager.cs
- DockProviderWrapper.cs
- ColumnHeader.cs
- DocumentApplication.cs
- ISCIIEncoding.cs
- NonParentingControl.cs
- ChannelTerminatedException.cs
- CollectionChangeEventArgs.cs
- DBSqlParserColumnCollection.cs
- SqlDataSourceSelectingEventArgs.cs
- ActivityExecutionContext.cs
- WindowsListView.cs
- LingerOption.cs
- ListBoxItemAutomationPeer.cs
- TreeViewAutomationPeer.cs
- LockCookie.cs
- InterleavedZipPartStream.cs
- CodeMethodReturnStatement.cs
- PropagatorResult.cs
- AnimationStorage.cs
- SchemaAttDef.cs
- DocumentOutline.cs
- AssemblyAttributesGoHere.cs
- TraceSection.cs
- TableAutomationPeer.cs
- RequestTimeoutManager.cs
- AmbientValueAttribute.cs
- EntityWithChangeTrackerStrategy.cs
- ClassData.cs
- SQLRoleProvider.cs
- userdatakeys.cs
- TreeViewEvent.cs
- SpAudioStreamWrapper.cs
- ClassicBorderDecorator.cs
- HwndHostAutomationPeer.cs
- UnsafeCollabNativeMethods.cs
- Regex.cs
- FormattedText.cs
- XmlFormatReaderGenerator.cs
- Rect3DConverter.cs
- FormViewModeEventArgs.cs
- MetadataArtifactLoaderCompositeFile.cs
- DecimalConverter.cs
- UnsafeNativeMethods.cs
- ConstraintStruct.cs
- StylusButtonCollection.cs
- LicenseException.cs
- ResourceSet.cs
- TraversalRequest.cs
- Rotation3DAnimation.cs
- Type.cs
- EntryPointNotFoundException.cs
- PropertyEntry.cs
- EditorPartChrome.cs