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
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlSchemaObjectCollection.cs
- QuaternionAnimationBase.cs
- ButtonBaseAutomationPeer.cs
- HttpModuleCollection.cs
- DependencyPropertyChangedEventArgs.cs
- WebRequestModuleElementCollection.cs
- GenericTransactionFlowAttribute.cs
- IgnoreFlushAndCloseStream.cs
- SchemaNotation.cs
- PresentationAppDomainManager.cs
- HMACSHA384.cs
- MembershipUser.cs
- SchemaNames.cs
- AssertHelper.cs
- ToolStripDropDown.cs
- WeakReferenceKey.cs
- PeerDuplexChannelListener.cs
- PageAsyncTask.cs
- TouchDevice.cs
- LocalizedNameDescriptionPair.cs
- StopStoryboard.cs
- SqlDataReaderSmi.cs
- EventProviderTraceListener.cs
- LineGeometry.cs
- DBCommandBuilder.cs
- DataSourceCacheDurationConverter.cs
- TextBlockAutomationPeer.cs
- PolicyLevel.cs
- ConstraintConverter.cs
- IIS7UserPrincipal.cs
- EntityDesignerDataSourceView.cs
- TransformGroup.cs
- UnitySerializationHolder.cs
- MemberHolder.cs
- FileResponseElement.cs
- BitmapScalingModeValidation.cs
- Wizard.cs
- RedirectionProxy.cs
- XhtmlMobileTextWriter.cs
- TypeReference.cs
- DataColumnMappingCollection.cs
- HandlerFactoryWrapper.cs
- ExtendedPropertyCollection.cs
- AutoGeneratedField.cs
- EdmToObjectNamespaceMap.cs
- FormatConvertedBitmap.cs
- ProjectionPruner.cs
- SQLGuid.cs
- ContentFileHelper.cs
- WebPartConnectionsDisconnectVerb.cs
- CallbackValidatorAttribute.cs
- NativeMethods.cs
- DNS.cs
- ModelVisual3D.cs
- SqlConnectionFactory.cs
- OdbcPermission.cs
- RewritingValidator.cs
- DataGridColumnHeadersPresenterAutomationPeer.cs
- NumericExpr.cs
- HtmlUtf8RawTextWriter.cs
- XPathNodeInfoAtom.cs
- CompoundFileReference.cs
- DelegateSerializationHolder.cs
- SimpleHandlerFactory.cs
- FormatterConverter.cs
- DataRecordInternal.cs
- ComAdminInterfaces.cs
- ZipIORawDataFileBlock.cs
- PropertyChangedEventManager.cs
- CompModSwitches.cs
- PeerInvitationResponse.cs
- StringResourceManager.cs
- ZipIORawDataFileBlock.cs
- SqlGatherProducedAliases.cs
- EventOpcode.cs
- ReferencedType.cs
- DataGridItemAutomationPeer.cs
- LambdaCompiler.Expressions.cs
- DrawingDrawingContext.cs
- MsmqProcessProtocolHandler.cs
- ChangeProcessor.cs
- SQLByteStorage.cs
- KeyInstance.cs
- TcpSocketManager.cs
- BooleanFunctions.cs
- ManagedFilter.cs
- CryptoStream.cs
- Helpers.cs
- hwndwrapper.cs
- ManifestResourceInfo.cs
- SecurityUtils.cs
- SqlDataAdapter.cs
- DataGridViewTextBoxColumn.cs
- CounterCreationDataCollection.cs
- Pen.cs
- XmlWriterSettings.cs
- XmlEntityReference.cs
- DrawingGroupDrawingContext.cs
- DropSource.cs
- QuaternionConverter.cs