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
- EntityDataSourceSelectedEventArgs.cs
- XmlParserContext.cs
- DataGridViewTextBoxEditingControl.cs
- TrackPointCollection.cs
- Attributes.cs
- ResourceManagerWrapper.cs
- ToolStripContainerDesigner.cs
- validationstate.cs
- WeakReferenceList.cs
- BindingExpressionUncommonField.cs
- ModelItemDictionaryImpl.cs
- ProcessHost.cs
- Bitmap.cs
- SimpleMailWebEventProvider.cs
- CompoundFileStreamReference.cs
- SoapSchemaMember.cs
- DataKey.cs
- dbenumerator.cs
- SafeFreeMibTable.cs
- TreeView.cs
- DataGridCell.cs
- COM2FontConverter.cs
- InstanceHandleReference.cs
- SchemaImporterExtensionElementCollection.cs
- DiscardableAttribute.cs
- QueryGeneratorBase.cs
- DecimalAverageAggregationOperator.cs
- Overlapped.cs
- TrustLevelCollection.cs
- AdornerDecorator.cs
- _FtpControlStream.cs
- SpotLight.cs
- SimpleApplicationHost.cs
- SocketElement.cs
- TypeReference.cs
- DeploymentExceptionMapper.cs
- SafeLibraryHandle.cs
- WindowClosedEventArgs.cs
- Highlights.cs
- Span.cs
- SqlDependencyListener.cs
- ExpressionLexer.cs
- SamlNameIdentifierClaimResource.cs
- ElementHost.cs
- HwndSubclass.cs
- InertiaRotationBehavior.cs
- ImportContext.cs
- XmlSchemaValidator.cs
- AdapterSwitches.cs
- ScrollProviderWrapper.cs
- PropertyInformation.cs
- UserControl.cs
- RegisteredScript.cs
- NotificationContext.cs
- SmiContextFactory.cs
- EntityTypeBase.cs
- SQLDateTime.cs
- URIFormatException.cs
- ResizeGrip.cs
- PageAsyncTask.cs
- PreProcessor.cs
- PropertyToken.cs
- CipherData.cs
- NameValueConfigurationElement.cs
- PageClientProxyGenerator.cs
- ScrollContentPresenter.cs
- ColumnWidthChangedEvent.cs
- VariableAction.cs
- DataSourceCacheDurationConverter.cs
- StylusDevice.cs
- FlagsAttribute.cs
- AttachInfo.cs
- DBDataPermissionAttribute.cs
- HtmlUtf8RawTextWriter.cs
- RenderCapability.cs
- BypassElement.cs
- SystemKeyConverter.cs
- PathFigureCollection.cs
- SkewTransform.cs
- IApplicationTrustManager.cs
- BamlCollectionHolder.cs
- StringAnimationUsingKeyFrames.cs
- PartitionResolver.cs
- CompilerResults.cs
- RegexTypeEditor.cs
- ObjectStateEntryDbDataRecord.cs
- GacUtil.cs
- InvalidateEvent.cs
- BoundingRectTracker.cs
- SingleStorage.cs
- DbMetaDataCollectionNames.cs
- FileReader.cs
- formatter.cs
- MatrixStack.cs
- FastPropertyAccessor.cs
- WsdlExporter.cs
- HttpRequest.cs
- AdCreatedEventArgs.cs
- GenericRootAutomationPeer.cs
- TableLayoutSettingsTypeConverter.cs