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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DrawingVisualDrawingContext.cs
- DataTemplate.cs
- MaterialGroup.cs
- TextAutomationPeer.cs
- BamlTreeNode.cs
- WebResourceAttribute.cs
- CellTreeNodeVisitors.cs
- RemoteWebConfigurationHostServer.cs
- PeerPresenceInfo.cs
- StateRuntime.cs
- _ListenerResponseStream.cs
- SafeCryptoKeyHandle.cs
- DropShadowBitmapEffect.cs
- DesignerView.xaml.cs
- ExpressionBuilder.cs
- InputQueue.cs
- EntryPointNotFoundException.cs
- StringArrayEditor.cs
- XmlDeclaration.cs
- CultureInfoConverter.cs
- FlowPosition.cs
- DataGridCellClipboardEventArgs.cs
- EventRecordWrittenEventArgs.cs
- RenameRuleObjectDialog.Designer.cs
- RedirectionProxy.cs
- KeyedCollection.cs
- PolyBezierSegmentFigureLogic.cs
- BuildResultCache.cs
- CodeBinaryOperatorExpression.cs
- CurrentTimeZone.cs
- ParallelEnumerable.cs
- Array.cs
- TemplateControlBuildProvider.cs
- InstanceLockLostException.cs
- IDispatchConstantAttribute.cs
- SystemColors.cs
- AttachmentService.cs
- isolationinterop.cs
- EditingCoordinator.cs
- Panel.cs
- PageVisual.cs
- BitmapEffectInput.cs
- ConnectionInterfaceCollection.cs
- SecureUICommand.cs
- CommunicationException.cs
- ProxyGenerationError.cs
- ListViewGroupConverter.cs
- SafeCryptContextHandle.cs
- DecoderNLS.cs
- CopyCodeAction.cs
- MemberBinding.cs
- FactoryGenerator.cs
- SiteMap.cs
- RelOps.cs
- AbsoluteQuery.cs
- _NtlmClient.cs
- DirectoryRedirect.cs
- Trace.cs
- Wizard.cs
- QilNode.cs
- FrameworkTextComposition.cs
- HyperLinkField.cs
- _NegoState.cs
- DataRow.cs
- ReadWriteControlDesigner.cs
- ViewCellRelation.cs
- GenericPrincipal.cs
- OptimizerPatterns.cs
- LinqDataSourceUpdateEventArgs.cs
- HttpHeaderCollection.cs
- EntityKeyElement.cs
- BidOverLoads.cs
- DataGridViewTopRowAccessibleObject.cs
- IncomingWebResponseContext.cs
- OuterGlowBitmapEffect.cs
- BindableTemplateBuilder.cs
- SuppressMergeCheckAttribute.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- DeclaredTypeElementCollection.cs
- Point.cs
- UnmanagedMarshal.cs
- JsonFaultDetail.cs
- CompilerHelpers.cs
- SystemUnicastIPAddressInformation.cs
- XmlDataCollection.cs
- IisTraceWebEventProvider.cs
- LockedBorderGlyph.cs
- Util.cs
- BaseUriHelper.cs
- BindingExpression.cs
- TextServicesContext.cs
- ExtensibleClassFactory.cs
- BufferedWebEventProvider.cs
- FilePrompt.cs
- SafeViewOfFileHandle.cs
- FixedPageAutomationPeer.cs
- BitStream.cs
- ContentHostHelper.cs
- ListViewContainer.cs
- ListViewGroupConverter.cs