Code:
/ 4.0 / 4.0 / 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. // ==++== // // 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
- EncodingTable.cs
- UniqueSet.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- SqlConnectionPoolProviderInfo.cs
- SessionStateSection.cs
- TargetInvocationException.cs
- MetadataFile.cs
- CodeConstructor.cs
- _NetworkingPerfCounters.cs
- WebPartTracker.cs
- DesignSurfaceEvent.cs
- ReflectionTypeLoadException.cs
- ConditionalAttribute.cs
- ValidationError.cs
- CompareValidator.cs
- BinHexDecoder.cs
- documentation.cs
- DataGridViewCellStyleBuilderDialog.cs
- QilReference.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- UiaCoreProviderApi.cs
- ImageIndexEditor.cs
- EntityKeyElement.cs
- MarkedHighlightComponent.cs
- ToolStripSettings.cs
- DesignUtil.cs
- BuildManagerHost.cs
- GridViewDeletedEventArgs.cs
- SystemDiagnosticsSection.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- HtmlTableRowCollection.cs
- XmlnsPrefixAttribute.cs
- SortQueryOperator.cs
- Operators.cs
- HtmlInputButton.cs
- GCHandleCookieTable.cs
- EntitySqlQueryBuilder.cs
- StrongNamePublicKeyBlob.cs
- DataGridViewCell.cs
- MenuItemBindingCollection.cs
- UInt64Storage.cs
- ParentQuery.cs
- XmlLanguageConverter.cs
- XmlReader.cs
- ProxyGenerationError.cs
- FilteredDataSetHelper.cs
- SqlExpressionNullability.cs
- OpenTypeLayout.cs
- EventListener.cs
- ListBoxItem.cs
- Types.cs
- SystemColors.cs
- COM2Enum.cs
- SecurityCriticalDataForSet.cs
- OpenFileDialog.cs
- OleDbError.cs
- MatrixCamera.cs
- DefaultProxySection.cs
- DataGridItemEventArgs.cs
- DecimalAverageAggregationOperator.cs
- SecureUICommand.cs
- TemplateControlBuildProvider.cs
- LoginUtil.cs
- XamlInt32CollectionSerializer.cs
- MenuBase.cs
- SHA1CryptoServiceProvider.cs
- XmlValidatingReaderImpl.cs
- FullTextState.cs
- IERequestCache.cs
- Error.cs
- HandleValueEditor.cs
- util.cs
- DataObject.cs
- DateTimeSerializationSection.cs
- AutomationIdentifierGuids.cs
- AnnotationComponentChooser.cs
- PositiveTimeSpanValidator.cs
- WebPartMovingEventArgs.cs
- ProjectionCamera.cs
- GetPageCompletedEventArgs.cs
- CreatingCookieEventArgs.cs
- ThreadStateException.cs
- CanExecuteRoutedEventArgs.cs
- LoginStatusDesigner.cs
- XmlValidatingReaderImpl.cs
- Int16AnimationUsingKeyFrames.cs
- TextProperties.cs
- SupportsEventValidationAttribute.cs
- HttpHandler.cs
- TypeLoadException.cs
- ValuePattern.cs
- Codec.cs
- CriticalFinalizerObject.cs
- SqlLiftWhereClauses.cs
- DocumentPaginator.cs
- EnumValAlphaComparer.cs
- HttpException.cs
- SimplePropertyEntry.cs
- XmlSchemaAppInfo.cs
- UpdateEventArgs.cs