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
- ProfileSection.cs
- IsolatedStorageFilePermission.cs
- WaitHandle.cs
- SafePEFileHandle.cs
- BitmapFrameDecode.cs
- CodeArgumentReferenceExpression.cs
- ContentPlaceHolder.cs
- URL.cs
- XmlName.cs
- TrackingProfileDeserializationException.cs
- DataGridBoolColumn.cs
- FormatterServices.cs
- ArraySortHelper.cs
- GestureRecognitionResult.cs
- LoginUtil.cs
- StateBag.cs
- WindowExtensionMethods.cs
- Oid.cs
- SqlDataSource.cs
- SqlInfoMessageEvent.cs
- WorkflowTimerService.cs
- OutputCacheModule.cs
- SqlLiftWhereClauses.cs
- FixedDocumentSequencePaginator.cs
- DirectoryInfo.cs
- ProfilePropertyMetadata.cs
- EntityDataSourceDesignerHelper.cs
- EntityDataSourceEntitySetNameItem.cs
- CommittableTransaction.cs
- TableAutomationPeer.cs
- EventDescriptorCollection.cs
- ThicknessAnimationBase.cs
- BinaryNode.cs
- HashMembershipCondition.cs
- Geometry.cs
- WCFServiceClientProxyGenerator.cs
- CommandConverter.cs
- XmlDocumentSerializer.cs
- Interop.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- HtmlInputFile.cs
- CssClassPropertyAttribute.cs
- SubpageParagraph.cs
- ProtocolProfile.cs
- ContentDefinition.cs
- TemplatePagerField.cs
- UpDownBase.cs
- DataGridColumnStyleMappingNameEditor.cs
- OleDbInfoMessageEvent.cs
- Context.cs
- AsyncOperationManager.cs
- InternalPermissions.cs
- RotationValidation.cs
- XmlCharacterData.cs
- WebPartMovingEventArgs.cs
- SyncOperationState.cs
- EntityTemplateUserControl.cs
- Variant.cs
- Expr.cs
- WebPartCatalogCloseVerb.cs
- TextViewBase.cs
- BCLDebug.cs
- SessionStateUtil.cs
- PrintEvent.cs
- FormatVersion.cs
- EDesignUtil.cs
- InputScopeManager.cs
- PersonalizationStateInfoCollection.cs
- DataBoundControl.cs
- TextElementCollection.cs
- RSAPKCS1SignatureFormatter.cs
- SwitchAttribute.cs
- TextDecorations.cs
- TripleDESCryptoServiceProvider.cs
- StylusPlugin.cs
- ScrollProperties.cs
- CodeCompiler.cs
- VarRefManager.cs
- DefaultPropertyAttribute.cs
- NetworkInterface.cs
- MarkupCompilePass1.cs
- TypedTableBaseExtensions.cs
- ChildTable.cs
- wgx_render.cs
- x509store.cs
- ReadOnlyCollectionBase.cs
- RegexMatchCollection.cs
- SoapSchemaImporter.cs
- EUCJPEncoding.cs
- ApplicationHost.cs
- InternalBase.cs
- DataFormat.cs
- PropertyGeneratedEventArgs.cs
- xmlsaver.cs
- SqlSelectClauseBuilder.cs
- WindowsFormsLinkLabel.cs
- _ListenerRequestStream.cs
- FontFamilyConverter.cs
- RowSpanVector.cs
- XmlLoader.cs