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
- Parsers.cs
- BitmapMetadata.cs
- WindowsFormsSynchronizationContext.cs
- DesignerActionMethodItem.cs
- ExpressionBuilder.cs
- ListViewItemMouseHoverEvent.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- ValidationSummary.cs
- VisualTreeHelper.cs
- ConnectionProviderAttribute.cs
- EventBindingService.cs
- AdapterDictionary.cs
- Point.cs
- LogEntryHeaderDeserializer.cs
- Opcode.cs
- ScrollItemProviderWrapper.cs
- GlyphInfoList.cs
- CheckBoxDesigner.cs
- ColorTranslator.cs
- DefaultPropertyAttribute.cs
- SamlAction.cs
- SiteIdentityPermission.cs
- BitmapEffect.cs
- DataObjectMethodAttribute.cs
- ObjectSecurity.cs
- SmtpAuthenticationManager.cs
- NonParentingControl.cs
- XmlNodeReader.cs
- SecurityHelper.cs
- TdsParameterSetter.cs
- InvokeProviderWrapper.cs
- WindowsTooltip.cs
- SqlTriggerContext.cs
- TargetPerspective.cs
- _OSSOCK.cs
- BindingCollection.cs
- DataGridViewCellCollection.cs
- OuterProxyWrapper.cs
- XmlSerializationWriter.cs
- SaveFileDialog.cs
- HwndSubclass.cs
- LinkLabel.cs
- Compilation.cs
- precedingquery.cs
- DataGridRow.cs
- externdll.cs
- TileBrush.cs
- SamlAction.cs
- SecurityResources.cs
- DateTimeParse.cs
- QueryStringHandler.cs
- OdbcConnectionOpen.cs
- EntityDataSourceWrapperCollection.cs
- SamlConstants.cs
- QilXmlReader.cs
- ElementsClipboardData.cs
- ElementMarkupObject.cs
- OperatingSystem.cs
- BindingElementExtensionElement.cs
- TransactionBridgeSection.cs
- ToolStripDropDownClosingEventArgs.cs
- FloaterBaseParagraph.cs
- ContractComponent.cs
- TraceSection.cs
- CharacterMetrics.cs
- RemotingServices.cs
- CornerRadiusConverter.cs
- future.cs
- Margins.cs
- PngBitmapDecoder.cs
- DependencyObjectPropertyDescriptor.cs
- RelationshipNavigation.cs
- IteratorFilter.cs
- SqlTriggerAttribute.cs
- HatchBrush.cs
- PhysicalOps.cs
- DelegateSerializationHolder.cs
- StickyNoteAnnotations.cs
- ResourceExpression.cs
- Block.cs
- MimeReturn.cs
- PassportAuthenticationEventArgs.cs
- SecureStringHasher.cs
- ResourceLoader.cs
- DataServiceContext.cs
- CharacterBuffer.cs
- StreamInfo.cs
- RecommendedAsConfigurableAttribute.cs
- SvcMapFileLoader.cs
- HighlightComponent.cs
- Transform3D.cs
- HttpClientChannel.cs
- hresults.cs
- PrinterSettings.cs
- CircleHotSpot.cs
- ReachDocumentPageSerializer.cs
- PointKeyFrameCollection.cs
- RequestStatusBarUpdateEventArgs.cs
- PolyQuadraticBezierSegment.cs
- SafeRightsManagementSessionHandle.cs