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
- SafeViewOfFileHandle.cs
- Collection.cs
- EdmType.cs
- EdmPropertyAttribute.cs
- AutomationPeer.cs
- InstanceHandleConflictException.cs
- DataControlLinkButton.cs
- MimePart.cs
- OutKeywords.cs
- DispatcherExceptionFilterEventArgs.cs
- listitem.cs
- XmlSchemaType.cs
- InternalRelationshipCollection.cs
- Tokenizer.cs
- cache.cs
- Interlocked.cs
- DrawingDrawingContext.cs
- TransformValueSerializer.cs
- ServiceDesigner.xaml.cs
- WorkflowDebuggerSteppingAttribute.cs
- AnimationStorage.cs
- ObjectNotFoundException.cs
- VBCodeProvider.cs
- AssociationSetEnd.cs
- controlskin.cs
- FontWeights.cs
- ConstructorNeedsTagAttribute.cs
- StringBuilder.cs
- Stack.cs
- TextRunCacheImp.cs
- OutputCacheSettings.cs
- AxisAngleRotation3D.cs
- StylusOverProperty.cs
- StringArrayConverter.cs
- BuildProviderUtils.cs
- BevelBitmapEffect.cs
- BasePattern.cs
- WebPartTransformerAttribute.cs
- SqlBulkCopyColumnMapping.cs
- XmlAttributeProperties.cs
- ListViewSortEventArgs.cs
- TextParagraphView.cs
- PrintPreviewGraphics.cs
- MethodToken.cs
- Token.cs
- PenContexts.cs
- WriteFileContext.cs
- DataObjectFieldAttribute.cs
- RequestTimeoutManager.cs
- Compiler.cs
- XmlAutoDetectWriter.cs
- RuntimeUtils.cs
- PrePostDescendentsWalker.cs
- CommandBinding.cs
- ObjectTag.cs
- Events.cs
- VisualCollection.cs
- TableDesigner.cs
- DatatypeImplementation.cs
- DataGridViewLinkColumn.cs
- _NtlmClient.cs
- ApplicationServicesHostFactory.cs
- MembershipSection.cs
- OleDbSchemaGuid.cs
- EntityWrapper.cs
- EditingCoordinator.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- StructuralComparisons.cs
- HwndTarget.cs
- Span.cs
- ChangeConflicts.cs
- ContentWrapperAttribute.cs
- AssemblyInfo.cs
- RequiredFieldValidator.cs
- _SingleItemRequestCache.cs
- PerfService.cs
- SafeArrayRankMismatchException.cs
- IIS7WorkerRequest.cs
- WebCategoryAttribute.cs
- PolygonHotSpot.cs
- RNGCryptoServiceProvider.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- SmiContext.cs
- DbConnectionPoolOptions.cs
- WebPartMenu.cs
- TagElement.cs
- GridView.cs
- HttpChannelListener.cs
- CultureTable.cs
- CombinedGeometry.cs
- UserMapPath.cs
- GuidTagList.cs
- RowType.cs
- XmlSchemaInclude.cs
- SHA384CryptoServiceProvider.cs
- SchemaComplexType.cs
- OracleInfoMessageEventArgs.cs
- SafeFreeMibTable.cs
- AnimatedTypeHelpers.cs
- NetTcpBindingElement.cs