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
- PageParserFilter.cs
- ByteFacetDescriptionElement.cs
- DataRowCollection.cs
- ColorTransform.cs
- CollectionsUtil.cs
- ContainerFilterService.cs
- securitymgrsite.cs
- HtmlButton.cs
- VerificationAttribute.cs
- CodeTypeReferenceExpression.cs
- WebBrowsableAttribute.cs
- StyleTypedPropertyAttribute.cs
- SqlFunctionAttribute.cs
- EntityWithChangeTrackerStrategy.cs
- DesignerActionMethodItem.cs
- BrowserCapabilitiesCodeGenerator.cs
- SelectedCellsChangedEventArgs.cs
- ProfessionalColorTable.cs
- Interop.cs
- Triangle.cs
- XmlQueryStaticData.cs
- DocumentAutomationPeer.cs
- safePerfProviderHandle.cs
- HtmlControlPersistable.cs
- TextEditorThreadLocalStore.cs
- BitmapVisualManager.cs
- SmtpException.cs
- WorkflowDebuggerSteppingAttribute.cs
- CollectionEditVerbManager.cs
- ProfileService.cs
- NetStream.cs
- TypedDataSetSchemaImporterExtension.cs
- RenameRuleObjectDialog.Designer.cs
- SQLRoleProvider.cs
- TreeViewHitTestInfo.cs
- XmlArrayItemAttribute.cs
- GrammarBuilderPhrase.cs
- CachedBitmap.cs
- MissingFieldException.cs
- ValueProviderWrapper.cs
- RsaSecurityTokenAuthenticator.cs
- FSWPathEditor.cs
- LambdaExpression.cs
- FontStretch.cs
- WebEvents.cs
- ISFTagAndGuidCache.cs
- GridViewRowEventArgs.cs
- Encoder.cs
- TextureBrush.cs
- DataContractSerializerSection.cs
- DependencyPropertyHelper.cs
- DefaultTraceListener.cs
- DataTableNewRowEvent.cs
- DesignerHierarchicalDataSourceView.cs
- FileAuthorizationModule.cs
- CodeTypeConstructor.cs
- ClientReliableChannelBinder.cs
- TextParagraphProperties.cs
- DesignerCalendarAdapter.cs
- SecurityTokenProvider.cs
- ImageMapEventArgs.cs
- MouseEvent.cs
- DifferencingCollection.cs
- SimpleMailWebEventProvider.cs
- MatrixKeyFrameCollection.cs
- ContractNamespaceAttribute.cs
- KeyConstraint.cs
- BasicKeyConstraint.cs
- Button.cs
- DropTarget.cs
- SmtpTransport.cs
- DataGridSortCommandEventArgs.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- ChangeTracker.cs
- OdbcInfoMessageEvent.cs
- DataTableMapping.cs
- ErrorWebPart.cs
- ExpressionPrefixAttribute.cs
- QueryGeneratorBase.cs
- HttpCachePolicyWrapper.cs
- LabelDesigner.cs
- PriorityRange.cs
- ThemeableAttribute.cs
- LostFocusEventManager.cs
- ConstructorNeedsTagAttribute.cs
- CodeDomConfigurationHandler.cs
- Pair.cs
- DbProviderFactoriesConfigurationHandler.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- RelAssertionDirectKeyIdentifierClause.cs
- SemaphoreSecurity.cs
- FileUpload.cs
- HandleCollector.cs
- ValidatingReaderNodeData.cs
- RelationshipNavigation.cs
- DateTimePickerDesigner.cs
- ObjectPersistData.cs
- UnhandledExceptionEventArgs.cs
- FileSystemEventArgs.cs
- Constants.cs