Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- ObjectDataSource.cs
- ChannelTracker.cs
- AutomationPeer.cs
- DataGridBoolColumn.cs
- Calendar.cs
- WindowsIPAddress.cs
- Scripts.cs
- TransformerConfigurationWizardBase.cs
- TabletCollection.cs
- ThreadBehavior.cs
- CodeCommentStatementCollection.cs
- MediaElement.cs
- SubpageParagraph.cs
- IsolatedStorageFilePermission.cs
- cryptoapiTransform.cs
- WindowsScroll.cs
- PiiTraceSource.cs
- remotingproxy.cs
- ProviderConnectionPointCollection.cs
- Version.cs
- ThaiBuddhistCalendar.cs
- RowBinding.cs
- MeasureItemEvent.cs
- GACMembershipCondition.cs
- InlinedAggregationOperator.cs
- EdgeProfileValidation.cs
- JsonWriter.cs
- UpdateRecord.cs
- PerspectiveCamera.cs
- ToolStripSplitStackLayout.cs
- TemplateControl.cs
- TypeSchema.cs
- DocumentPageView.cs
- ManipulationBoundaryFeedbackEventArgs.cs
- XmlToDatasetMap.cs
- TextElementAutomationPeer.cs
- ResXBuildProvider.cs
- GeneratedContractType.cs
- DropDownList.cs
- IssuedTokenParametersElement.cs
- CngKey.cs
- BindingMemberInfo.cs
- EditingCoordinator.cs
- ObjectStorage.cs
- SizeChangedEventArgs.cs
- DynamicMethod.cs
- AspProxy.cs
- EmptyImpersonationContext.cs
- DesignerTransactionCloseEvent.cs
- QilTypeChecker.cs
- DocumentOrderComparer.cs
- TransactionException.cs
- DependencyPropertyConverter.cs
- SpeechEvent.cs
- WebContext.cs
- UIElement3D.cs
- FunctionDescription.cs
- BindingList.cs
- WmpBitmapDecoder.cs
- QueryParameter.cs
- MemberDomainMap.cs
- ObjectManager.cs
- ListItemConverter.cs
- InfoCardSymmetricCrypto.cs
- DocumentViewerBase.cs
- connectionpool.cs
- DataTemplateKey.cs
- AvtEvent.cs
- BitmapFrameDecode.cs
- ExcCanonicalXml.cs
- PasswordPropertyTextAttribute.cs
- TransformCollection.cs
- DesignerActionUIStateChangeEventArgs.cs
- DocumentXmlWriter.cs
- ToolBarOverflowPanel.cs
- XmlAnyElementAttributes.cs
- IODescriptionAttribute.cs
- CodeExporter.cs
- counter.cs
- BlobPersonalizationState.cs
- ExternalException.cs
- SQLRoleProvider.cs
- PlainXmlDeserializer.cs
- UiaCoreProviderApi.cs
- ZipIOExtraFieldElement.cs
- TimeManager.cs
- ValidatorAttribute.cs
- ObjectPersistData.cs
- CacheDependency.cs
- TextChangedEventArgs.cs
- LineSegment.cs
- Geometry3D.cs
- ContextProperty.cs
- ReaderWriterLock.cs
- HtmlContainerControl.cs
- ParseNumbers.cs
- ObjectDataSourceSelectingEventArgs.cs
- DataPagerFieldItem.cs
- mediapermission.cs
- URLIdentityPermission.cs