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
- MessageRpc.cs
- WebPartHelpVerb.cs
- JsonReader.cs
- _ContextAwareResult.cs
- Monitor.cs
- ModifiableIteratorCollection.cs
- _NTAuthentication.cs
- HttpHandlerAction.cs
- TagPrefixInfo.cs
- SelectionChangedEventArgs.cs
- InternalCache.cs
- SessionStateModule.cs
- DirectoryObjectSecurity.cs
- NavigationEventArgs.cs
- AncestorChangedEventArgs.cs
- ThaiBuddhistCalendar.cs
- CallbackValidatorAttribute.cs
- TextParagraphProperties.cs
- BaseCodeDomTreeGenerator.cs
- SerializableTypeCodeDomSerializer.cs
- MatrixAnimationBase.cs
- EmbeddedMailObjectsCollection.cs
- HtmlMobileTextWriter.cs
- FormViewCommandEventArgs.cs
- BCryptSafeHandles.cs
- TextViewDesigner.cs
- DragEvent.cs
- ThrowHelper.cs
- Frame.cs
- IntSecurity.cs
- _Events.cs
- Region.cs
- ClientSettingsProvider.cs
- SqlConnectionString.cs
- DependencyPropertyHelper.cs
- Set.cs
- TreeView.cs
- RelatedView.cs
- XmlDomTextWriter.cs
- StyleXamlParser.cs
- SweepDirectionValidation.cs
- WebConfigurationHostFileChange.cs
- ClientData.cs
- Int32AnimationBase.cs
- IdentityValidationException.cs
- CultureInfo.cs
- GeometryHitTestParameters.cs
- Point.cs
- BitmapDecoder.cs
- FlowDocumentPaginator.cs
- MergeFailedEvent.cs
- objectquery_tresulttype.cs
- MulticastNotSupportedException.cs
- MailDefinition.cs
- TraceSection.cs
- TypeUsage.cs
- TextTrailingCharacterEllipsis.cs
- TableLayoutPanel.cs
- MultipartContentParser.cs
- OdbcDataReader.cs
- TemplateBamlRecordReader.cs
- OleAutBinder.cs
- CalendarDateRange.cs
- DependentTransaction.cs
- WebPartDesigner.cs
- BoundPropertyEntry.cs
- CompositeTypefaceMetrics.cs
- CodeTypeMember.cs
- TableLayout.cs
- AssociationSetMetadata.cs
- AppSettingsExpressionEditor.cs
- FixedSOMTableCell.cs
- RowToParametersTransformer.cs
- Emitter.cs
- DataGridCaption.cs
- ModelUIElement3D.cs
- Query.cs
- Exception.cs
- AppDomainFactory.cs
- EditorZone.cs
- CqlLexerHelpers.cs
- Lasso.cs
- ExtensionSimplifierMarkupObject.cs
- DataContext.cs
- WasHttpHandlersInstallComponent.cs
- ClassData.cs
- SqlHelper.cs
- WindowsIdentity.cs
- AsyncWaitHandle.cs
- BindingContext.cs
- DataGridViewMethods.cs
- Point3DKeyFrameCollection.cs
- ComponentRenameEvent.cs
- SerializationHelper.cs
- FlowLayoutSettings.cs
- IndexingContentUnit.cs
- RemoteWebConfigurationHostStream.cs
- ServiceHostingEnvironmentSection.cs
- SkinBuilder.cs
- QuaternionConverter.cs