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
- WebPartHeaderCloseVerb.cs
- Configuration.cs
- FastEncoder.cs
- XPathAncestorIterator.cs
- GradientStopCollection.cs
- FixedPosition.cs
- IISUnsafeMethods.cs
- ListItemConverter.cs
- ValueChangedEventManager.cs
- TextModifier.cs
- ChannelParameterCollection.cs
- CachedBitmap.cs
- ApplicationSecurityInfo.cs
- Assert.cs
- TextParentUndoUnit.cs
- MediaTimeline.cs
- DiagnosticTrace.cs
- RTLAwareMessageBox.cs
- UnsafeMethods.cs
- BasicHttpSecurity.cs
- elementinformation.cs
- DBNull.cs
- StylusPointProperty.cs
- PropertyCollection.cs
- NetPipeSectionData.cs
- TextFindEngine.cs
- DesignTimeParseData.cs
- ChannelTokenTypeConverter.cs
- DesignParameter.cs
- ValueTypeFixupInfo.cs
- SourceLineInfo.cs
- SequenceRange.cs
- XamlTypeMapper.cs
- ListBindingConverter.cs
- ValidationPropertyAttribute.cs
- DesignerSerializerAttribute.cs
- FontWeights.cs
- VariableAction.cs
- ConnectionsZone.cs
- GroupBox.cs
- SHA512.cs
- AccessibilityApplicationManager.cs
- DiscoveryClientProtocol.cs
- RemoteDebugger.cs
- DependencySource.cs
- ReceiveContext.cs
- ProgressiveCrcCalculatingStream.cs
- TraceSection.cs
- StylusTip.cs
- BindValidationContext.cs
- FixedBufferAttribute.cs
- ToolTip.cs
- ServerIdentity.cs
- XmlDocumentSerializer.cs
- BStrWrapper.cs
- TypeInitializationException.cs
- AppSecurityManager.cs
- PlanCompiler.cs
- xmlsaver.cs
- ResourceSetExpression.cs
- NonClientArea.cs
- SoapFault.cs
- ElementHostAutomationPeer.cs
- FixedSOMElement.cs
- ControlAdapter.cs
- TreeNodeBindingCollection.cs
- TextMarkerSource.cs
- DesignerInterfaces.cs
- JsonGlobals.cs
- TypeCodeDomSerializer.cs
- ZipPackagePart.cs
- BitmapEffectrendercontext.cs
- EncoderExceptionFallback.cs
- SourceElementsCollection.cs
- QilReplaceVisitor.cs
- CodeSnippetExpression.cs
- Collection.cs
- OperatingSystemVersionCheck.cs
- TableLayoutStyle.cs
- ApplicationFileCodeDomTreeGenerator.cs
- XmlTypeAttribute.cs
- XamlPathDataSerializer.cs
- ShowExpandedMultiValueConverter.cs
- CollectionViewProxy.cs
- DeflateInput.cs
- IUnknownConstantAttribute.cs
- ExeConfigurationFileMap.cs
- XmlNamespaceManager.cs
- CookieProtection.cs
- FixedSOMLineRanges.cs
- EditableTreeList.cs
- LinqDataSourceDisposeEventArgs.cs
- TextTrailingWordEllipsis.cs
- GestureRecognitionResult.cs
- Psha1DerivedKeyGenerator.cs
- DataControlImageButton.cs
- SystemWebSectionGroup.cs
- XmlAttributeOverrides.cs
- TextSchema.cs
- StrokeNodeOperations2.cs