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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FormatterConverter.cs
- RepeaterCommandEventArgs.cs
- TreeView.cs
- WizardStepBase.cs
- WebBaseEventKeyComparer.cs
- PersonalizationDictionary.cs
- FullTrustAssembliesSection.cs
- NumericUpDownAcceleration.cs
- ExpandedWrapper.cs
- HttpRuntimeSection.cs
- InkPresenterAutomationPeer.cs
- NamespaceEmitter.cs
- EncoderNLS.cs
- SymbolMethod.cs
- HtmlImage.cs
- XmlSchemaException.cs
- filewebrequest.cs
- XmlHierarchicalDataSourceView.cs
- Odbc32.cs
- AppModelKnownContentFactory.cs
- MdImport.cs
- RoleManagerEventArgs.cs
- HandlerBase.cs
- SqlBulkCopyColumnMappingCollection.cs
- ComponentResourceManager.cs
- VirtualPathProvider.cs
- OutputScope.cs
- SqlRowUpdatedEvent.cs
- AsymmetricKeyExchangeFormatter.cs
- DataSourceHelper.cs
- BorderGapMaskConverter.cs
- PeerResolverMode.cs
- AuthorizationRuleCollection.cs
- X509WindowsSecurityToken.cs
- InputLanguage.cs
- X509UI.cs
- NativeWindow.cs
- TableRowGroup.cs
- LoadRetryHandler.cs
- ServiceSecurityAuditElement.cs
- DbDataAdapter.cs
- UserControl.cs
- NotifyParentPropertyAttribute.cs
- RemotingSurrogateSelector.cs
- DynamicValueConverter.cs
- TraceSection.cs
- CompiledQueryCacheKey.cs
- HostingEnvironmentException.cs
- OdbcConnection.cs
- DbConnectionOptions.cs
- AggregateNode.cs
- FontUnit.cs
- ProcessRequestArgs.cs
- UserUseLicenseDictionaryLoader.cs
- LocatorPartList.cs
- RtfFormatStack.cs
- XPathNode.cs
- DictionaryContent.cs
- Overlapped.cs
- ViewEventArgs.cs
- NullableFloatSumAggregationOperator.cs
- TextBlockAutomationPeer.cs
- activationcontext.cs
- PageOutputColor.cs
- KeyPressEvent.cs
- LinqDataSourceView.cs
- DataViewManagerListItemTypeDescriptor.cs
- OperationParameterInfo.cs
- EventLogEntryCollection.cs
- DataSysAttribute.cs
- FrugalMap.cs
- CodeCatchClauseCollection.cs
- CodeFieldReferenceExpression.cs
- DefaultBinder.cs
- TypeInfo.cs
- HMACSHA1.cs
- TextEditorSelection.cs
- SecurityTokenAttachmentMode.cs
- IndentedWriter.cs
- HttpServerUtilityBase.cs
- PropertyCondition.cs
- CommentEmitter.cs
- GPRECT.cs
- OletxResourceManager.cs
- NativeWindow.cs
- GlyphElement.cs
- TextEditorThreadLocalStore.cs
- CssTextWriter.cs
- ListViewItem.cs
- XhtmlBasicCommandAdapter.cs
- CdpEqualityComparer.cs
- WmlImageAdapter.cs
- AppSettings.cs
- EventLogEntryCollection.cs
- IndexOutOfRangeException.cs
- CompilerWrapper.cs
- IndexExpression.cs
- BufferedStream.cs
- BinaryObjectInfo.cs
- ping.cs