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
- MessageFilter.cs
- MultiSelectRootGridEntry.cs
- DataGridViewCellValueEventArgs.cs
- ContextMarshalException.cs
- ControlBindingsCollection.cs
- SQlBooleanStorage.cs
- SimpleLine.cs
- Rect3D.cs
- PartialArray.cs
- UriExt.cs
- DecimalAnimationBase.cs
- WebBrowserUriTypeConverter.cs
- RMEnrollmentPage3.cs
- WebPartHelpVerb.cs
- SamlAction.cs
- JournalEntryStack.cs
- StateManagedCollection.cs
- ScrollBarRenderer.cs
- DictionaryContent.cs
- XamlReader.cs
- SortFieldComparer.cs
- Win32Exception.cs
- KeyValueSerializer.cs
- HwndStylusInputProvider.cs
- XmlAttribute.cs
- DBNull.cs
- AutomationPatternInfo.cs
- FormView.cs
- ToolboxComponentsCreatingEventArgs.cs
- SmiRequestExecutor.cs
- DbDataReader.cs
- MemberRelationshipService.cs
- SiteMapPathDesigner.cs
- _LocalDataStoreMgr.cs
- SubqueryTrackingVisitor.cs
- EventLogEntryCollection.cs
- TemplateBindingExtensionConverter.cs
- MouseGestureValueSerializer.cs
- TimeoutValidationAttribute.cs
- SerializationException.cs
- StateDesigner.Layouts.cs
- CookieParameter.cs
- WpfKnownType.cs
- StringBuilder.cs
- AuthenticationModuleElementCollection.cs
- httpapplicationstate.cs
- COM2TypeInfoProcessor.cs
- VariantWrapper.cs
- SettingsPropertyIsReadOnlyException.cs
- ChineseLunisolarCalendar.cs
- UrlPath.cs
- UseAttributeSetsAction.cs
- FixedBufferAttribute.cs
- SoundPlayer.cs
- URLString.cs
- PreviewPrintController.cs
- ToolStripPanelRow.cs
- ConfigurationManagerInternal.cs
- ProxyManager.cs
- GridViewRowPresenter.cs
- ArgumentException.cs
- SmiEventSink_DeferedProcessing.cs
- UserControlDesigner.cs
- DSACryptoServiceProvider.cs
- ServiceModelConfiguration.cs
- SqlSelectStatement.cs
- TcpTransportElement.cs
- WindowsRichEditRange.cs
- KeyGestureValueSerializer.cs
- SqlProfileProvider.cs
- HttpResponse.cs
- NumberFormatInfo.cs
- FileLoadException.cs
- _SSPISessionCache.cs
- errorpatternmatcher.cs
- Label.cs
- ListBindableAttribute.cs
- GroupItemAutomationPeer.cs
- GlobalizationAssembly.cs
- webproxy.cs
- UdpConstants.cs
- AssociativeAggregationOperator.cs
- AttachedProperty.cs
- ObsoleteAttribute.cs
- DataObjectSettingDataEventArgs.cs
- MouseBinding.cs
- StopStoryboard.cs
- xmlfixedPageInfo.cs
- SyndicationElementExtension.cs
- ExtensibleClassFactory.cs
- TableCell.cs
- ToolStripLocationCancelEventArgs.cs
- CodeRegionDirective.cs
- BinHexEncoder.cs
- PreservationFileReader.cs
- Bezier.cs
- ConfigurationManagerHelperFactory.cs
- XmlAnyAttributeAttribute.cs
- ForEachDesigner.xaml.cs
- BinaryObjectWriter.cs