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
- ToolStripTemplateNode.cs
- CatalogPart.cs
- ReaderOutput.cs
- ContentFilePart.cs
- ExpressionBuilderContext.cs
- SecurityResources.cs
- RemotingConfigParser.cs
- SafeNativeMethodsOther.cs
- ParameterEditorUserControl.cs
- AnimationClockResource.cs
- XmlCharacterData.cs
- XamlRtfConverter.cs
- GridPattern.cs
- CursorInteropHelper.cs
- GeneralTransform3DGroup.cs
- OutputCacheSection.cs
- MediaPlayerState.cs
- Floater.cs
- CatalogPart.cs
- SharedPersonalizationStateInfo.cs
- ProcessThreadCollection.cs
- DataObjectAttribute.cs
- ByteKeyFrameCollection.cs
- Handle.cs
- IOException.cs
- WebPartMovingEventArgs.cs
- HttpFileCollection.cs
- HttpRequest.cs
- SpecialNameAttribute.cs
- UnsettableComboBox.cs
- FreezableCollection.cs
- ScrollContentPresenter.cs
- EngineSite.cs
- SubclassTypeValidator.cs
- ExtentKey.cs
- WeakReferenceList.cs
- FormCollection.cs
- Pen.cs
- DataGridToolTip.cs
- RadioButtonStandardAdapter.cs
- QuotedPrintableStream.cs
- XmlObjectSerializerReadContextComplex.cs
- GenericIdentity.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- QuotedPrintableStream.cs
- FlowDocumentReaderAutomationPeer.cs
- DateTimeValueSerializer.cs
- RealizationDrawingContextWalker.cs
- SafeBitVector32.cs
- AdRotator.cs
- ClientEventManager.cs
- InstanceDataCollectionCollection.cs
- SignatureGenerator.cs
- ViewCellSlot.cs
- CellLabel.cs
- SqlInternalConnectionSmi.cs
- Misc.cs
- TeredoHelper.cs
- DataBindingCollection.cs
- DockProviderWrapper.cs
- OpacityConverter.cs
- HttpCookiesSection.cs
- PassportAuthenticationModule.cs
- CacheForPrimitiveTypes.cs
- HtmlShimManager.cs
- WebPartAddingEventArgs.cs
- EventLogPermission.cs
- XmlDocumentType.cs
- _UriTypeConverter.cs
- XNameTypeConverter.cs
- AliasedExpr.cs
- SpeechSeg.cs
- DeflateStreamAsyncResult.cs
- StylusDevice.cs
- ProfileSettingsCollection.cs
- FixedNode.cs
- DrawListViewSubItemEventArgs.cs
- PropertyEmitterBase.cs
- PathParser.cs
- MatrixIndependentAnimationStorage.cs
- QilReference.cs
- DataGridTableCollection.cs
- ColorConvertedBitmap.cs
- ColorTranslator.cs
- ZeroOpNode.cs
- MultiDataTrigger.cs
- SerializationSectionGroup.cs
- DetailsViewUpdatedEventArgs.cs
- DelegatingTypeDescriptionProvider.cs
- HttpListener.cs
- ConsumerConnectionPoint.cs
- ResourceExpressionBuilder.cs
- __Error.cs
- FamilyMap.cs
- StrokeNodeOperations.cs
- WindowsTokenRoleProvider.cs
- CorrelationValidator.cs
- mactripleDES.cs
- XmlDataImplementation.cs
- UIElement.cs