Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Runtime / CompilerServices / FixedBufferAttribute.cs / 1305376 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OutputCacheProfile.cs
- DataTemplateKey.cs
- _SSPIWrapper.cs
- RowUpdatedEventArgs.cs
- RoleService.cs
- DataGridViewSortCompareEventArgs.cs
- ApplicationException.cs
- UnsupportedPolicyOptionsException.cs
- BulletedList.cs
- PageRouteHandler.cs
- AssemblyCache.cs
- PaintValueEventArgs.cs
- ImageListImageEditor.cs
- XPathItem.cs
- KeyValuePair.cs
- EncoderParameter.cs
- StaticFileHandler.cs
- Animatable.cs
- Pens.cs
- DataGridDesigner.cs
- PreloadedPackages.cs
- CmsUtils.cs
- Vector3DConverter.cs
- GridViewUpdatedEventArgs.cs
- DoubleAnimationUsingPath.cs
- UserControlFileEditor.cs
- XmlConvert.cs
- EntityDataSourceContextCreatingEventArgs.cs
- CommandCollectionEditor.cs
- ConstrainedGroup.cs
- WsatAdminException.cs
- XmlSchemaSubstitutionGroup.cs
- Code.cs
- WorkflowMarkupSerializationManager.cs
- UnmanagedMemoryStreamWrapper.cs
- SiteMap.cs
- SecureUICommand.cs
- SimpleHandlerFactory.cs
- DataObjectCopyingEventArgs.cs
- BinaryObjectWriter.cs
- FormsAuthenticationEventArgs.cs
- DesigntimeLicenseContext.cs
- ModuleBuilderData.cs
- OperationResponse.cs
- ListViewSortEventArgs.cs
- XmlSchemaInfo.cs
- QuaternionAnimation.cs
- StaticSiteMapProvider.cs
- XmlnsDictionary.cs
- UniqueConstraint.cs
- SafeMemoryMappedFileHandle.cs
- DataPointer.cs
- SyndicationElementExtensionCollection.cs
- CheckBoxAutomationPeer.cs
- EnumUnknown.cs
- AuthorizationRule.cs
- AssociationTypeEmitter.cs
- InvalidAsynchronousStateException.cs
- TemplateComponentConnector.cs
- ToolStrip.cs
- CodeChecksumPragma.cs
- CodeGeneratorOptions.cs
- MessageFormatterConverter.cs
- SmiEventStream.cs
- IdentityManager.cs
- LogLogRecord.cs
- RoutedEvent.cs
- ComponentResourceKey.cs
- WindowsUpDown.cs
- Menu.cs
- PTProvider.cs
- SharedPersonalizationStateInfo.cs
- FormViewPageEventArgs.cs
- nulltextnavigator.cs
- FileRegion.cs
- NTAccount.cs
- TreeNodeCollectionEditorDialog.cs
- MessageProtectionOrder.cs
- CssTextWriter.cs
- BinaryParser.cs
- ToolStripSplitButton.cs
- invalidudtexception.cs
- XmlSchemaParticle.cs
- Errors.cs
- SettingsProviderCollection.cs
- OdbcConnectionHandle.cs
- XmlNodeChangedEventArgs.cs
- AutomationPatternInfo.cs
- Dump.cs
- TypeDescriptor.cs
- AffineTransform3D.cs
- CFStream.cs
- JpegBitmapDecoder.cs
- InvalidDocumentContentsException.cs
- AssociatedControlConverter.cs
- CodePageUtils.cs
- OracleConnectionFactory.cs
- EntityDataSourceSelectedEventArgs.cs
- MessageDesigner.cs
- BuildProviderUtils.cs