Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Runtime / CompilerServices / FixedBufferAttribute.cs / 1305376 / 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
- MatrixAnimationBase.cs
- SkipQueryOptionExpression.cs
- _CommandStream.cs
- InkCollectionBehavior.cs
- TableCellCollection.cs
- VBIdentifierNameEditor.cs
- TextServicesProperty.cs
- CodePropertyReferenceExpression.cs
- XPathQilFactory.cs
- SiteMapDesignerDataSourceView.cs
- WebBrowserBase.cs
- OperationAbortedException.cs
- QilTargetType.cs
- MetadataCollection.cs
- GregorianCalendarHelper.cs
- TextSchema.cs
- ViewManager.cs
- LogicalExpressionEditor.cs
- FlowNode.cs
- TreeNodeStyleCollection.cs
- ElementInit.cs
- LineVisual.cs
- HtmlUtf8RawTextWriter.cs
- BamlBinaryReader.cs
- DynamicDocumentPaginator.cs
- GridViewSelectEventArgs.cs
- GatewayDefinition.cs
- COM2ColorConverter.cs
- RotateTransform.cs
- SiteMapProvider.cs
- SerializationException.cs
- ReplacementText.cs
- AccessDataSourceView.cs
- SqlFormatter.cs
- PaperSize.cs
- QuaternionAnimationBase.cs
- WebConfigurationFileMap.cs
- XmlSchemas.cs
- Transform3DGroup.cs
- UserValidatedEventArgs.cs
- Pen.cs
- IndexedGlyphRun.cs
- ProfileManager.cs
- ValidatorUtils.cs
- DataGridItemCollection.cs
- RowBinding.cs
- DrawingAttributes.cs
- FocusChangedEventArgs.cs
- FixedSchema.cs
- BitVector32.cs
- PenThread.cs
- ReverseQueryOperator.cs
- RectangleF.cs
- NamedPipeTransportSecurityElement.cs
- ZipIOLocalFileDataDescriptor.cs
- ProvidersHelper.cs
- BamlLocalizableResource.cs
- CTreeGenerator.cs
- XmlEncoding.cs
- IncomingWebRequestContext.cs
- DbProviderFactories.cs
- TcpClientSocketManager.cs
- CustomAttributeSerializer.cs
- PriorityQueue.cs
- OperationFormatter.cs
- EntityChangedParams.cs
- XpsS0ValidatingLoader.cs
- AttributeCollection.cs
- WindowsIdentity.cs
- TimelineGroup.cs
- CompilationUtil.cs
- Number.cs
- ListDictionaryInternal.cs
- DocumentScope.cs
- FigureParagraph.cs
- DataGridViewLinkColumn.cs
- EntityDescriptor.cs
- DynamicRendererThreadManager.cs
- PolicyChain.cs
- OrderingQueryOperator.cs
- DataObjectSettingDataEventArgs.cs
- CurrentChangingEventArgs.cs
- SrgsElementFactory.cs
- XmlDataLoader.cs
- HandlerWithFactory.cs
- XPathNodeInfoAtom.cs
- WindowHideOrCloseTracker.cs
- XmlEncoding.cs
- EncoderReplacementFallback.cs
- SqlParameter.cs
- LongTypeConverter.cs
- AuthenticationException.cs
- ByteAnimation.cs
- TextBreakpoint.cs
- LassoSelectionBehavior.cs
- FactoryMaker.cs
- PrtTicket_Base.cs
- WebUtility.cs
- EmptyReadOnlyDictionaryInternal.cs
- TextServicesCompartmentContext.cs