Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- VisualTreeHelper.cs
- SchemaEntity.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- RootBrowserWindow.cs
- ErrorRuntimeConfig.cs
- RSATokenProvider.cs
- BitmapSource.cs
- CapabilitiesRule.cs
- TreeBuilder.cs
- FormattedText.cs
- XmlMapping.cs
- IncrementalCompileAnalyzer.cs
- ImageList.cs
- Cell.cs
- FilterableData.cs
- TypeUtil.cs
- ObjectDataSourceMethodEventArgs.cs
- SQLInt16.cs
- OperandQuery.cs
- SoapExtensionReflector.cs
- VectorCollectionValueSerializer.cs
- ControlCodeDomSerializer.cs
- LogReserveAndAppendState.cs
- ManipulationStartedEventArgs.cs
- TextSearch.cs
- PersonalizationEntry.cs
- TcpAppDomainProtocolHandler.cs
- SmtpException.cs
- _ProxyChain.cs
- Command.cs
- SqlProfileProvider.cs
- ObjectKeyFrameCollection.cs
- MulticastNotSupportedException.cs
- MsmqAppDomainProtocolHandler.cs
- SignatureHelper.cs
- ViewManagerAttribute.cs
- Misc.cs
- AutomationTextAttribute.cs
- BulletChrome.cs
- QuaternionAnimationUsingKeyFrames.cs
- ButtonDesigner.cs
- TreeNodeEventArgs.cs
- SimpleTextLine.cs
- DataGridClipboardCellContent.cs
- DocumentViewerHelper.cs
- IndicFontClient.cs
- ISAPIApplicationHost.cs
- ServiceObjectContainer.cs
- Trace.cs
- WmiEventSink.cs
- PointIndependentAnimationStorage.cs
- TextTreePropertyUndoUnit.cs
- SmtpClient.cs
- MutexSecurity.cs
- FixedElement.cs
- DataGridViewBindingCompleteEventArgs.cs
- CompiledQueryCacheEntry.cs
- CookieParameter.cs
- ColumnCollection.cs
- ReadOnlyHierarchicalDataSourceView.cs
- _Rfc2616CacheValidators.cs
- InstanceDataCollectionCollection.cs
- BaseUriHelper.cs
- AttributeUsageAttribute.cs
- AssemblyBuilder.cs
- HttpVersion.cs
- ExpressionQuoter.cs
- AccessedThroughPropertyAttribute.cs
- HashMembershipCondition.cs
- DataList.cs
- TabItemAutomationPeer.cs
- FormParameter.cs
- XmlHelper.cs
- isolationinterop.cs
- CommandID.cs
- XmlSerializerVersionAttribute.cs
- DetailsViewPagerRow.cs
- XmlUtf8RawTextWriter.cs
- DocumentPaginator.cs
- PolygonHotSpot.cs
- InstanceDataCollection.cs
- WithStatement.cs
- Message.cs
- SqlDataSourceCache.cs
- SqlDataSourceFilteringEventArgs.cs
- IDispatchConstantAttribute.cs
- FilterQueryOptionExpression.cs
- RecognitionEventArgs.cs
- ArraySegment.cs
- RuntimeConfigLKG.cs
- ListViewGroupConverter.cs
- RegionInfo.cs
- OracleParameterCollection.cs
- CodeAttributeDeclarationCollection.cs
- WorkflowFormatterBehavior.cs
- DynamicPhysicalDiscoSearcher.cs
- CodeGroup.cs
- AnnotationResourceCollection.cs
- ADConnectionHelper.cs
- RsaSecurityTokenAuthenticator.cs