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
- EncoderReplacementFallback.cs
- DataControlLinkButton.cs
- BrushValueSerializer.cs
- ParseHttpDate.cs
- DateTimeOffsetStorage.cs
- DataBoundControlHelper.cs
- Simplifier.cs
- HostedElements.cs
- OutputChannelBinder.cs
- MergeEnumerator.cs
- WindowsGraphics.cs
- WebControl.cs
- EvidenceTypeDescriptor.cs
- DesignRelation.cs
- RefExpr.cs
- CodeTypeDeclarationCollection.cs
- SoapFault.cs
- HandlerBase.cs
- BitVec.cs
- X509UI.cs
- IndicShape.cs
- EntitySetBaseCollection.cs
- FontFamily.cs
- PropertyValueChangedEvent.cs
- CommentEmitter.cs
- MatrixAnimationUsingPath.cs
- SQLBinary.cs
- ServiceHttpHandlerFactory.cs
- ConvertEvent.cs
- SectionInput.cs
- GridViewColumnHeader.cs
- HtmlString.cs
- HtmlValidatorAdapter.cs
- TextPointerBase.cs
- LicenseManager.cs
- StrokeNode.cs
- DataGridItemCollection.cs
- ScrollItemPattern.cs
- FullTrustAssemblyCollection.cs
- AuthenticationModuleElement.cs
- TextEvent.cs
- DbException.cs
- ErrorsHelper.cs
- XmlUrlResolver.cs
- HyperLinkColumn.cs
- SelectionHighlightInfo.cs
- AsmxEndpointPickerExtension.cs
- SpStreamWrapper.cs
- IPEndPointCollection.cs
- EditorAttribute.cs
- ComboBox.cs
- Expression.cs
- EntityConnectionStringBuilder.cs
- ADConnectionHelper.cs
- ParameterToken.cs
- OletxTransactionManager.cs
- XmlWrappingReader.cs
- ScrollEventArgs.cs
- Point3D.cs
- SafeLibraryHandle.cs
- BinaryObjectReader.cs
- DbDataReader.cs
- SafeCancelMibChangeNotify.cs
- SafeUserTokenHandle.cs
- LinqDataSourceHelper.cs
- OleDbConnectionFactory.cs
- ClonableStack.cs
- ListViewItem.cs
- ConsumerConnectionPoint.cs
- SerializationSectionGroup.cs
- DrawingContextDrawingContextWalker.cs
- SqlSelectStatement.cs
- WebPartConnectionsEventArgs.cs
- TextWriterTraceListener.cs
- TemplateInstanceAttribute.cs
- CaseCqlBlock.cs
- DirectoryNotFoundException.cs
- EditorPart.cs
- XmlSchemaGroup.cs
- SmiEventStream.cs
- DataSourceControl.cs
- PeerName.cs
- OleDbStruct.cs
- DrawingImage.cs
- ThreadStartException.cs
- JournalNavigationScope.cs
- AppLevelCompilationSectionCache.cs
- PermissionListSet.cs
- BaseValidator.cs
- KeyValueInternalCollection.cs
- PrintPreviewControl.cs
- Crc32.cs
- ScriptHandlerFactory.cs
- Geometry3D.cs
- PtsPage.cs
- ProfileManager.cs
- TiffBitmapEncoder.cs
- EntitySqlQueryState.cs
- cookieexception.cs
- InstanceKey.cs