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
- StrokeNodeData.cs
- TemplateEditingVerb.cs
- SimpleColumnProvider.cs
- BevelBitmapEffect.cs
- KeyInstance.cs
- AsyncContentLoadedEventArgs.cs
- Duration.cs
- SmiRequestExecutor.cs
- AsyncCompletedEventArgs.cs
- HttpCacheVary.cs
- ModelTreeEnumerator.cs
- BamlStream.cs
- HotSpot.cs
- PathFigure.cs
- PointKeyFrameCollection.cs
- BinHexEncoder.cs
- WebServiceAttribute.cs
- DataColumnMapping.cs
- VScrollProperties.cs
- DrawingState.cs
- ByteStack.cs
- CompiledIdentityConstraint.cs
- Claim.cs
- SizeChangedInfo.cs
- PlatformNotSupportedException.cs
- DataServiceResponse.cs
- EqualityComparer.cs
- StoragePropertyMapping.cs
- SafeBitVector32.cs
- CollectionEditVerbManager.cs
- InternalConfigEventArgs.cs
- ConditionalAttribute.cs
- COSERVERINFO.cs
- ThousandthOfEmRealPoints.cs
- CultureTable.cs
- XPathNodeHelper.cs
- Style.cs
- FreeFormDesigner.cs
- XmlSchemaInclude.cs
- FixedLineResult.cs
- wgx_render.cs
- DotExpr.cs
- Mappings.cs
- FileChangeNotifier.cs
- ContextProperty.cs
- CompiledXpathExpr.cs
- AnimationLayer.cs
- XsltContext.cs
- CodeTypeParameterCollection.cs
- DnsPermission.cs
- PrintDialog.cs
- DbConnectionPool.cs
- XamlFigureLengthSerializer.cs
- SQLDecimalStorage.cs
- Win32.cs
- TextChange.cs
- TextTreeRootNode.cs
- DataSourceXmlClassAttribute.cs
- RegexWorker.cs
- TextSyndicationContentKindHelper.cs
- StrokeNodeData.cs
- CodeGotoStatement.cs
- Visitor.cs
- StylusDevice.cs
- MarkupExtensionParser.cs
- EncryptedXml.cs
- NativeBuffer.cs
- DragDrop.cs
- StorageBasedPackageProperties.cs
- XMLUtil.cs
- ChtmlTextBoxAdapter.cs
- Image.cs
- LinkButton.cs
- TiffBitmapEncoder.cs
- ArrangedElementCollection.cs
- HwndProxyElementProvider.cs
- LockCookie.cs
- DoubleAverageAggregationOperator.cs
- TreeNodeMouseHoverEvent.cs
- CacheMemory.cs
- BulletChrome.cs
- ColumnReorderedEventArgs.cs
- JoinCqlBlock.cs
- storepermission.cs
- DeclarativeConditionsCollection.cs
- HTMLTagNameToTypeMapper.cs
- AnonymousIdentificationSection.cs
- DeviceContext2.cs
- ExpressionConverter.cs
- FtpWebResponse.cs
- PageCodeDomTreeGenerator.cs
- SingleObjectCollection.cs
- ObjectStorage.cs
- DocumentSchemaValidator.cs
- ProgressPage.cs
- LinkTarget.cs
- altserialization.cs
- TextHintingModeValidation.cs
- RC2CryptoServiceProvider.cs
- ResourceSet.cs