Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PrintDialog.cs
- SmtpAuthenticationManager.cs
- SQLDecimalStorage.cs
- DataReaderContainer.cs
- Set.cs
- OleDbCommand.cs
- MenuScrollingVisibilityConverter.cs
- WindowShowOrOpenTracker.cs
- TaskForm.cs
- StringResourceManager.cs
- Suspend.cs
- CacheVirtualItemsEvent.cs
- TreeView.cs
- ListCollectionView.cs
- TabOrder.cs
- SHA384.cs
- GraphicsPathIterator.cs
- InputBinder.cs
- DisplayToken.cs
- XmlException.cs
- EventDescriptorCollection.cs
- InlinedAggregationOperator.cs
- InvokePatternIdentifiers.cs
- Accessible.cs
- CodeSubDirectoriesCollection.cs
- Italic.cs
- XmlCharCheckingReader.cs
- InstancePersistenceEvent.cs
- TraceContextEventArgs.cs
- ProcessHostServerConfig.cs
- ConfigurationUtility.cs
- FixedHighlight.cs
- TextEditorSpelling.cs
- ResetableIterator.cs
- RecordConverter.cs
- MemoryMappedFile.cs
- BitArray.cs
- TreeNodeCollection.cs
- ActivityInfo.cs
- UriTemplate.cs
- ItemsControl.cs
- FileLevelControlBuilderAttribute.cs
- JournalEntry.cs
- CompoundFileIOPermission.cs
- dbenumerator.cs
- EventData.cs
- FixedPageProcessor.cs
- InitializationEventAttribute.cs
- WizardDesigner.cs
- RowBinding.cs
- Delegate.cs
- XmlObjectSerializerReadContextComplex.cs
- ReadWriteSpinLock.cs
- CodeChecksumPragma.cs
- Parsers.cs
- loginstatus.cs
- MobileUserControlDesigner.cs
- MemberAccessException.cs
- WrapPanel.cs
- WebPartTransformer.cs
- SchemaTableOptionalColumn.cs
- HierarchicalDataBoundControl.cs
- RemotingSurrogateSelector.cs
- DataGridViewLinkCell.cs
- ReadOnlyNameValueCollection.cs
- DuplicateWaitObjectException.cs
- CheckBoxStandardAdapter.cs
- UnrecognizedAssertionsBindingElement.cs
- WebPartCollection.cs
- Odbc32.cs
- DoubleConverter.cs
- SqlUtils.cs
- ThrowHelper.cs
- RsaKeyIdentifierClause.cs
- CodeCompileUnit.cs
- UpdateException.cs
- DataControlCommands.cs
- _RequestCacheProtocol.cs
- Size3DConverter.cs
- OperationCanceledException.cs
- CompatibleComparer.cs
- PresentationSource.cs
- PropertyGridCommands.cs
- FontConverter.cs
- DataGridViewHeaderCell.cs
- TrustLevelCollection.cs
- SessionStateContainer.cs
- SqlUtils.cs
- EnvelopedPkcs7.cs
- CannotUnloadAppDomainException.cs
- KeysConverter.cs
- XhtmlTextWriter.cs
- DrawingGroup.cs
- DetailsViewCommandEventArgs.cs
- InvokeBase.cs
- NameSpaceEvent.cs
- ContentPropertyAttribute.cs
- odbcmetadatacollectionnames.cs
- DbProviderFactoriesConfigurationHandler.cs
- AssertSection.cs