Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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; } } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EncoderFallback.cs
- ListSortDescription.cs
- IncomingWebRequestContext.cs
- IsolatedStorageFileStream.cs
- SymDocumentType.cs
- WindowsProgressbar.cs
- ProjectionPruner.cs
- XamlTypeMapper.cs
- TCPClient.cs
- RawStylusSystemGestureInputReport.cs
- ExpressionConverter.cs
- BitmapEffectGeneralTransform.cs
- WeakReferenceList.cs
- MULTI_QI.cs
- DataServiceHost.cs
- DeferredReference.cs
- Fx.cs
- DataGridItemEventArgs.cs
- NameValueSectionHandler.cs
- QilChoice.cs
- ExternalFile.cs
- RowToFieldTransformer.cs
- ListBindingHelper.cs
- documentsequencetextcontainer.cs
- EntityCodeGenerator.cs
- DiagnosticsConfiguration.cs
- ListContractAdapter.cs
- DataTableMapping.cs
- UnsignedPublishLicense.cs
- WindowsEditBoxRange.cs
- FormViewRow.cs
- RuntimeEnvironment.cs
- SqlDataAdapter.cs
- Properties.cs
- NumberAction.cs
- UseAttributeSetsAction.cs
- HostedTcpTransportManager.cs
- TabControlCancelEvent.cs
- ExtensionFile.cs
- GeneralTransform3DGroup.cs
- SafeRegistryHandle.cs
- ParameterCollection.cs
- PersistenceException.cs
- SyndicationCategory.cs
- WebRequestModuleElement.cs
- RelationshipSet.cs
- ValidationRuleCollection.cs
- GcSettings.cs
- EditorBrowsableAttribute.cs
- SapiRecoContext.cs
- TabControlCancelEvent.cs
- OdbcInfoMessageEvent.cs
- FontConverter.cs
- CompilerGlobalScopeAttribute.cs
- GlyphInfoList.cs
- Win32NamedPipes.cs
- EpmSourceTree.cs
- BatchStream.cs
- RangeValidator.cs
- DataServices.cs
- SafeHandle.cs
- ContactManager.cs
- ComAdminInterfaces.cs
- SchemaEntity.cs
- ChannelEndpointElement.cs
- PageParser.cs
- TableLayoutRowStyleCollection.cs
- TreeViewImageKeyConverter.cs
- SQLString.cs
- SimpleNameService.cs
- RequestCacheEntry.cs
- MLangCodePageEncoding.cs
- FunctionDetailsReader.cs
- ApplicationProxyInternal.cs
- NamedElement.cs
- WindowsScroll.cs
- _OSSOCK.cs
- PropertyTab.cs
- SafeSystemMetrics.cs
- PageBreakRecord.cs
- SqlTransaction.cs
- ExpressionReplacer.cs
- ProofTokenCryptoHandle.cs
- PointConverter.cs
- ColorAnimationUsingKeyFrames.cs
- MsmqHostedTransportConfiguration.cs
- SessionStateModule.cs
- Vector3DValueSerializer.cs
- Assembly.cs
- RichTextBox.cs
- ViewStateChangedEventArgs.cs
- FontCollection.cs
- SiteMap.cs
- ImageBrush.cs
- ExpressionBuilder.cs
- AssociationSetMetadata.cs
- DataSourceCache.cs
- BitmapEffectvisualstate.cs
- RootAction.cs
- Message.cs