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
- MarginCollapsingState.cs
- ValueType.cs
- DrawingCollection.cs
- securitycriticaldata.cs
- ValidationError.cs
- HttpClientCertificate.cs
- CornerRadiusConverter.cs
- ReferencedCollectionType.cs
- DataGridSortCommandEventArgs.cs
- ImageInfo.cs
- BroadcastEventHelper.cs
- AxHostDesigner.cs
- EventSourceCreationData.cs
- ServiceOperationInvoker.cs
- Native.cs
- KeyValuePair.cs
- InfiniteTimeSpanConverter.cs
- UdpTransportBindingElement.cs
- SearchExpression.cs
- TransformFinalBlockRequest.cs
- NavigationCommands.cs
- BaseCollection.cs
- ScopedKnownTypes.cs
- IntSecurity.cs
- RNGCryptoServiceProvider.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- ListManagerBindingsCollection.cs
- XmlSerializerAssemblyAttribute.cs
- SizeAnimationUsingKeyFrames.cs
- IpcServerChannel.cs
- FormViewRow.cs
- WebServiceParameterData.cs
- CssStyleCollection.cs
- XpsImage.cs
- ByteStreamMessage.cs
- ObjectDataSourceEventArgs.cs
- ISAPIApplicationHost.cs
- ResourceIDHelper.cs
- BodyWriter.cs
- DataGridRowAutomationPeer.cs
- NegotiationTokenAuthenticatorState.cs
- Pointer.cs
- TimerEventSubscriptionCollection.cs
- DataGridViewCellStyleEditor.cs
- FormatVersion.cs
- MimeTextImporter.cs
- COM2PropertyPageUITypeConverter.cs
- KeyedQueue.cs
- WebServiceMethodData.cs
- OracleConnectionString.cs
- TextElement.cs
- HMACSHA1.cs
- WizardStepBase.cs
- compensatingcollection.cs
- ErrorTolerantObjectWriter.cs
- SplashScreen.cs
- DataObjectCopyingEventArgs.cs
- TraceInternal.cs
- DictionaryBase.cs
- AssemblyBuilder.cs
- IntSecurity.cs
- DataSetFieldSchema.cs
- ImageUrlEditor.cs
- RecognizerBase.cs
- TypeDescriptor.cs
- DataGridViewCheckBoxCell.cs
- ChangeBlockUndoRecord.cs
- InputReportEventArgs.cs
- HTMLTagNameToTypeMapper.cs
- MergablePropertyAttribute.cs
- AndCondition.cs
- DbConnectionFactory.cs
- PropertyCondition.cs
- DataSysAttribute.cs
- LogicalExpr.cs
- SqlClientWrapperSmiStream.cs
- Command.cs
- SourceElementsCollection.cs
- EntityReference.cs
- DesigntimeLicenseContext.cs
- CodeGotoStatement.cs
- HtmlTableCell.cs
- SessionStateModule.cs
- Brush.cs
- TypeSystem.cs
- ToolStripControlHost.cs
- NavigatorOutput.cs
- _ProxyChain.cs
- BaseEntityWrapper.cs
- Function.cs
- AssociationEndMember.cs
- CodeCompileUnit.cs
- RIPEMD160.cs
- TextPattern.cs
- GrammarBuilderRuleRef.cs
- ProfileSection.cs
- StylusCollection.cs
- ProtocolImporter.cs
- OracleDateTime.cs
- WsiProfilesElementCollection.cs