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
- RawStylusSystemGestureInputReport.cs
- ImmutableClientRuntime.cs
- XmlWriterSettings.cs
- MailDefinition.cs
- ArraySortHelper.cs
- FixedFlowMap.cs
- TaiwanCalendar.cs
- DrawingImage.cs
- Native.cs
- DatagridviewDisplayedBandsData.cs
- EpmCustomContentSerializer.cs
- assertwrapper.cs
- ScaleTransform.cs
- MemberCollection.cs
- TypeRestriction.cs
- KeyGesture.cs
- XmlHierarchyData.cs
- OLEDB_Enum.cs
- TextProviderWrapper.cs
- VirtualDirectoryMapping.cs
- OraclePermissionAttribute.cs
- ImageListStreamer.cs
- ping.cs
- WebHeaderCollection.cs
- ReflectionHelper.cs
- SystemColors.cs
- FileChangesMonitor.cs
- MsmqAuthenticationMode.cs
- CopyEncoder.cs
- UpdatePanelTrigger.cs
- ADMembershipProvider.cs
- input.cs
- DataRelationCollection.cs
- StrokeCollection.cs
- PartManifestEntry.cs
- XmlWrappingReader.cs
- TypeBuilder.cs
- SqlBulkCopyColumnMapping.cs
- WebPartsPersonalization.cs
- Marshal.cs
- BuildProvidersCompiler.cs
- WorkflowPrinting.cs
- LambdaValue.cs
- BuildResultCache.cs
- SingleObjectCollection.cs
- HttpDebugHandler.cs
- FixedSOMLineCollection.cs
- SelectionListComponentEditor.cs
- ProcessModelInfo.cs
- ThreadPool.cs
- SqlDataReaderSmi.cs
- MatrixTransform.cs
- WebPartDescriptionCollection.cs
- XmlBinaryReader.cs
- ProxyWebPart.cs
- MachineSettingsSection.cs
- PowerStatus.cs
- ProgressBarRenderer.cs
- HttpProfileGroupBase.cs
- QilIterator.cs
- XmlElementCollection.cs
- DictionaryTraceRecord.cs
- QueryGenerator.cs
- NamespaceCollection.cs
- SelectionRange.cs
- AuthenticodeSignatureInformation.cs
- MimeParameterWriter.cs
- ChangeBlockUndoRecord.cs
- TranslateTransform.cs
- ToggleButtonAutomationPeer.cs
- CancellableEnumerable.cs
- APCustomTypeDescriptor.cs
- HashSetDebugView.cs
- SqlReferenceCollection.cs
- MyContact.cs
- StreamGeometry.cs
- AccessText.cs
- HandledMouseEvent.cs
- HotSpot.cs
- XmlLangPropertyAttribute.cs
- TagPrefixInfo.cs
- ConstantSlot.cs
- CustomSignedXml.cs
- Figure.cs
- ObjectListItem.cs
- CookieProtection.cs
- ProofTokenCryptoHandle.cs
- Freezable.cs
- DataPagerFieldCollection.cs
- WsiProfilesElement.cs
- ManagementEventArgs.cs
- SHA256CryptoServiceProvider.cs
- ControlPaint.cs
- Binding.cs
- DllNotFoundException.cs
- _ConnectStream.cs
- EntityContainerEmitter.cs
- DispatcherProcessingDisabled.cs
- WaitHandle.cs
- LocalBuilder.cs