Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- WeakRefEnumerator.cs
- TextAction.cs
- PingOptions.cs
- ResourceWriter.cs
- ToolBarButtonDesigner.cs
- MultiBinding.cs
- WebConfigurationHost.cs
- CipherData.cs
- RestHandlerFactory.cs
- DbConnectionStringCommon.cs
- OutputScopeManager.cs
- ITreeGenerator.cs
- ColorMap.cs
- ToolStripPanelRow.cs
- Reference.cs
- HierarchicalDataSourceConverter.cs
- PackWebRequestFactory.cs
- _LazyAsyncResult.cs
- InstanceKeyNotReadyException.cs
- MessageDecoder.cs
- ViewgenGatekeeper.cs
- HttpApplicationStateWrapper.cs
- securestring.cs
- XPathNodePointer.cs
- ToolBarOverflowPanel.cs
- ProviderConnectionPoint.cs
- SHA512Cng.cs
- ParentQuery.cs
- RangeValidator.cs
- XmlText.cs
- UnaryNode.cs
- XPathQilFactory.cs
- WebServiceData.cs
- PluralizationService.cs
- SplitterDesigner.cs
- UseAttributeSetsAction.cs
- DoubleLink.cs
- FormattedText.cs
- BidPrivateBase.cs
- NativeMethods.cs
- DesignerDataConnection.cs
- DrawingBrush.cs
- WebPartConnectionsCancelEventArgs.cs
- basecomparevalidator.cs
- ObjectAssociationEndMapping.cs
- XPathAxisIterator.cs
- TypeBuilder.cs
- WebSysDisplayNameAttribute.cs
- EtwTrace.cs
- EncoderFallback.cs
- WindowsIPAddress.cs
- XamlStyleSerializer.cs
- InspectionWorker.cs
- GridViewDesigner.cs
- FlowDocumentPage.cs
- EntityDataSourceSelectedEventArgs.cs
- clipboard.cs
- ParseChildrenAsPropertiesAttribute.cs
- MissingMemberException.cs
- DefaultIfEmptyQueryOperator.cs
- UriScheme.cs
- SingleConverter.cs
- Lock.cs
- ListSortDescription.cs
- PropertyMap.cs
- OleDbMetaDataFactory.cs
- PageCache.cs
- HttpCachePolicyElement.cs
- SharedTcpTransportManager.cs
- Quack.cs
- ViewEventArgs.cs
- BulletedList.cs
- DispatcherExceptionEventArgs.cs
- ZipIOFileItemStream.cs
- MarginsConverter.cs
- DataGridTextColumn.cs
- XPathPatternParser.cs
- QilExpression.cs
- WindowsListViewGroupHelper.cs
- AssemblyNameProxy.cs
- TimeSpanValidator.cs
- HttpChannelBindingToken.cs
- PropertyChangeTracker.cs
- XmlSchemaResource.cs
- StorageMappingFragment.cs
- WebPartHeaderCloseVerb.cs
- VideoDrawing.cs
- IteratorDescriptor.cs
- PropertyPathWorker.cs
- EventProxy.cs
- SecurityException.cs
- AssemblyAttributesGoHere.cs
- DataException.cs
- HttpHandlersSection.cs
- XhtmlMobileTextWriter.cs
- DispatcherEventArgs.cs
- AlternationConverter.cs
- AutoCompleteStringCollection.cs
- CatalogPartChrome.cs
- SEHException.cs