Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- AttributedMetaModel.cs
- HwndKeyboardInputProvider.cs
- RegexWriter.cs
- StreamingContext.cs
- SingletonChannelAcceptor.cs
- StringReader.cs
- FieldAccessException.cs
- mongolianshape.cs
- DropSource.cs
- SqlRecordBuffer.cs
- ProcessHostConfigUtils.cs
- OdbcException.cs
- ProtectedConfigurationSection.cs
- ContentElementAutomationPeer.cs
- DeflateStream.cs
- FileLevelControlBuilderAttribute.cs
- FastPropertyAccessor.cs
- AllMembershipCondition.cs
- KeyBinding.cs
- DateRangeEvent.cs
- DSASignatureDeformatter.cs
- OutputCacheProfile.cs
- XmlSchemaDatatype.cs
- SynchronizationContext.cs
- ListViewUpdatedEventArgs.cs
- bidPrivateBase.cs
- ObjectStateManager.cs
- ExceptionUtil.cs
- RunInstallerAttribute.cs
- SessionPageStateSection.cs
- RSAOAEPKeyExchangeDeformatter.cs
- ImageBrush.cs
- PersonalizationStateInfo.cs
- PenThreadWorker.cs
- DeclaredTypeElement.cs
- CodeDomConfigurationHandler.cs
- DragSelectionMessageFilter.cs
- XmlRootAttribute.cs
- SQLInt32.cs
- embossbitmapeffect.cs
- HitTestParameters.cs
- NonSerializedAttribute.cs
- ToolboxItemCollection.cs
- Screen.cs
- RSACryptoServiceProvider.cs
- ImageListUtils.cs
- AutomationPatternInfo.cs
- FunctionOverloadResolver.cs
- UndoManager.cs
- WebBrowsableAttribute.cs
- FtpWebRequest.cs
- InternalRelationshipCollection.cs
- TreeNode.cs
- StateBag.cs
- LinkTarget.cs
- SettingsBindableAttribute.cs
- XmlAnyAttributeAttribute.cs
- MessageDroppedTraceRecord.cs
- SharedUtils.cs
- PropertyGridCommands.cs
- LoginView.cs
- MediaCommands.cs
- DataListItemEventArgs.cs
- XmlTypeAttribute.cs
- LoginUtil.cs
- ConfigXmlElement.cs
- ColumnBinding.cs
- UrlPath.cs
- ColumnWidthChangedEvent.cs
- SizeChangedEventArgs.cs
- WebBrowserNavigatingEventHandler.cs
- NonClientArea.cs
- RenderTargetBitmap.cs
- NullRuntimeConfig.cs
- TypeBuilderInstantiation.cs
- XmlTypeAttribute.cs
- HtmlSelect.cs
- Property.cs
- KeyNotFoundException.cs
- DynamicILGenerator.cs
- Misc.cs
- SecondaryIndex.cs
- PackagePartCollection.cs
- LayoutDump.cs
- SqlDataReaderSmi.cs
- PersistenceException.cs
- XMLSyntaxException.cs
- OleDbEnumerator.cs
- TreeBuilderXamlTranslator.cs
- Attributes.cs
- BackoffTimeoutHelper.cs
- CustomTrackingQuery.cs
- Invariant.cs
- HtmlTableRow.cs
- QilInvokeEarlyBound.cs
- UIAgentAsyncBeginRequest.cs
- FileDialogCustomPlace.cs
- TrackingSection.cs
- FileVersion.cs
- Hashtable.cs