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
- WindowsServiceElement.cs
- BufferModesCollection.cs
- TypeContext.cs
- AllMembershipCondition.cs
- DbConnectionPoolIdentity.cs
- InheritablePropertyChangeInfo.cs
- input.cs
- FormsAuthenticationUser.cs
- DrawingContextDrawingContextWalker.cs
- ResourceReferenceKeyNotFoundException.cs
- NullableLongMinMaxAggregationOperator.cs
- URLMembershipCondition.cs
- InstanceCollisionException.cs
- WindowsMenu.cs
- BasicExpandProvider.cs
- WebRequestModuleElement.cs
- Console.cs
- PromptEventArgs.cs
- ThreadPoolTaskScheduler.cs
- SpecularMaterial.cs
- DecoderExceptionFallback.cs
- Rotation3D.cs
- SelectionEditingBehavior.cs
- VirtualDirectoryMapping.cs
- TemplateControl.cs
- CryptoProvider.cs
- ComplexObject.cs
- HostedTransportConfigurationBase.cs
- BinaryObjectReader.cs
- NavigationWindowAutomationPeer.cs
- Timer.cs
- SortAction.cs
- Help.cs
- SqlRecordBuffer.cs
- Visual.cs
- ScrollProviderWrapper.cs
- SchemaNames.cs
- DecimalAnimationBase.cs
- HostProtectionPermission.cs
- IdentityValidationException.cs
- DataGridViewCellStyleChangedEventArgs.cs
- DataGridViewAccessibleObject.cs
- ListCardsInFileRequest.cs
- DataGridViewIntLinkedList.cs
- Int64AnimationUsingKeyFrames.cs
- PropertyPushdownHelper.cs
- ConnectivityStatus.cs
- ZeroOpNode.cs
- WebPartExportVerb.cs
- CodeAccessPermission.cs
- CompilerScope.Storage.cs
- UserMapPath.cs
- StrokeNodeOperations2.cs
- MenuCommand.cs
- UserNamePasswordServiceCredential.cs
- DropShadowBitmapEffect.cs
- ThreadPool.cs
- IProvider.cs
- WorkflowOwnershipException.cs
- X509ChainElement.cs
- ProfilePropertySettingsCollection.cs
- ProfileInfo.cs
- localization.cs
- AppDomainProtocolHandler.cs
- oledbmetadatacolumnnames.cs
- DataGridViewRow.cs
- TypeUtil.cs
- DoubleLinkList.cs
- DSACryptoServiceProvider.cs
- MissingSatelliteAssemblyException.cs
- XmlSchemaElement.cs
- ServiceObjectContainer.cs
- StringAnimationBase.cs
- UniqueContractNameValidationBehavior.cs
- OrderedDictionaryStateHelper.cs
- PropertyValueUIItem.cs
- ColorConverter.cs
- ITextView.cs
- LocalBuilder.cs
- SR.cs
- Transactions.cs
- DynamicFilterExpression.cs
- CodeCompiler.cs
- ActiveXHelper.cs
- SelectionListComponentEditor.cs
- TabPanel.cs
- DNS.cs
- DataGridViewComboBoxEditingControl.cs
- FrameworkPropertyMetadata.cs
- ShellProvider.cs
- MultipleViewProviderWrapper.cs
- FileLevelControlBuilderAttribute.cs
- WaitForChangedResult.cs
- KoreanCalendar.cs
- SerializationFieldInfo.cs
- CultureInfoConverter.cs
- ProfileSettings.cs
- HttpTransportSecurityElement.cs
- XmlSchemaType.cs
- M3DUtil.cs