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
- RoutedPropertyChangedEventArgs.cs
- ResXResourceReader.cs
- EpmSyndicationContentDeSerializer.cs
- PropertyFilter.cs
- AddInAdapter.cs
- MemberInfoSerializationHolder.cs
- DiagnosticTrace.cs
- AssemblyInfo.cs
- UserControlAutomationPeer.cs
- ProfileService.cs
- DrawListViewSubItemEventArgs.cs
- InputMethodStateChangeEventArgs.cs
- AesCryptoServiceProvider.cs
- KnownTypesProvider.cs
- FocusManager.cs
- Attributes.cs
- DataGridViewColumnConverter.cs
- PersonalizationProviderCollection.cs
- PointHitTestParameters.cs
- NativeMethods.cs
- RowType.cs
- CompositionDesigner.cs
- PropertyGridView.cs
- TransportSecurityBindingElement.cs
- RuleRefElement.cs
- MonikerProxyAttribute.cs
- TraceListeners.cs
- GridViewDeleteEventArgs.cs
- SchemaAttDef.cs
- FixedPage.cs
- InvalidComObjectException.cs
- XdrBuilder.cs
- GlyphingCache.cs
- SequenceRangeCollection.cs
- ErrorFormatter.cs
- Timer.cs
- CursorInteropHelper.cs
- DeferredElementTreeState.cs
- SafeNativeMethods.cs
- Int64.cs
- QuaternionRotation3D.cs
- XmlStringTable.cs
- AnnotationResourceChangedEventArgs.cs
- PackageDigitalSignature.cs
- InternalConfigRoot.cs
- login.cs
- remotingproxy.cs
- Evaluator.cs
- TextEditorSelection.cs
- DynamicPropertyReader.cs
- SymbolEqualComparer.cs
- DbSourceCommand.cs
- EmissiveMaterial.cs
- HostTimeoutsElement.cs
- SessionViewState.cs
- Pipe.cs
- MenuAutomationPeer.cs
- OdbcParameter.cs
- MSG.cs
- BindMarkupExtensionSerializer.cs
- Geometry3D.cs
- CommandSet.cs
- DataGridViewImageCell.cs
- Rotation3DAnimationUsingKeyFrames.cs
- MenuItemBinding.cs
- ZipIOCentralDirectoryBlock.cs
- Pool.cs
- dataprotectionpermissionattribute.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- PeerEndPoint.cs
- CompilationPass2Task.cs
- SystemKeyConverter.cs
- AlphaSortedEnumConverter.cs
- VScrollProperties.cs
- BadImageFormatException.cs
- HandoffBehavior.cs
- PromptStyle.cs
- Base64Encoder.cs
- CommonObjectSecurity.cs
- DataControlFieldTypeEditor.cs
- DynamicExpression.cs
- PermissionToken.cs
- ListControl.cs
- ButtonBaseAutomationPeer.cs
- ContentIterators.cs
- SoapSchemaImporter.cs
- FlowLayoutSettings.cs
- CssTextWriter.cs
- ItemCheckEvent.cs
- ToolStripTextBox.cs
- UInt16.cs
- LinqTreeNodeEvaluator.cs
- RuntimeArgumentHandle.cs
- MaxValueConverter.cs
- BindingContext.cs
- DataGridRow.cs
- EventItfInfo.cs
- MethodBuilder.cs
- TypeSchema.cs
- Native.cs