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
- KeyConverter.cs
- Group.cs
- LinqDataSourceValidationException.cs
- ApplicationFileParser.cs
- VsPropertyGrid.cs
- DataControlImageButton.cs
- ExistsInCollection.cs
- ClientFormsAuthenticationCredentials.cs
- FormViewCommandEventArgs.cs
- PersistChildrenAttribute.cs
- Assembly.cs
- CheckBox.cs
- ChineseLunisolarCalendar.cs
- ContainerUtilities.cs
- coordinatorfactory.cs
- ChannelManager.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- BehaviorEditorPart.cs
- FactoryRecord.cs
- UnsafeNativeMethods.cs
- SR.cs
- X509CertificateTrustedIssuerElementCollection.cs
- PtsPage.cs
- EntitySqlQueryState.cs
- SessionStateUtil.cs
- CollaborationHelperFunctions.cs
- Bits.cs
- MailSettingsSection.cs
- DataGridViewRowsAddedEventArgs.cs
- OracleConnectionString.cs
- MemberJoinTreeNode.cs
- SmiRecordBuffer.cs
- TextServicesPropertyRanges.cs
- ClientProxyGenerator.cs
- base64Transforms.cs
- WorkflowApplicationAbortedException.cs
- TextParagraphView.cs
- StatusBar.cs
- PropertyStore.cs
- DataPagerFieldCommandEventArgs.cs
- AddInControllerImpl.cs
- EtwTrace.cs
- HiddenField.cs
- XPathDocumentBuilder.cs
- SqlFacetAttribute.cs
- SecurityIdentifierElement.cs
- SessionStateSection.cs
- ConnectionManagementElementCollection.cs
- ReversePositionQuery.cs
- TextHintingModeValidation.cs
- AsyncPostBackErrorEventArgs.cs
- StylusButtonCollection.cs
- DisplayClaim.cs
- PersonalizableAttribute.cs
- SqlConnectionPoolGroupProviderInfo.cs
- QueryableDataSourceView.cs
- DynamicPropertyReader.cs
- AndCondition.cs
- GridViewActionList.cs
- BitmapEffectGeneralTransform.cs
- ValidatingPropertiesEventArgs.cs
- DetailsViewUpdateEventArgs.cs
- TransportChannelListener.cs
- TrackingLocation.cs
- TimeSpan.cs
- PreservationFileWriter.cs
- SecUtil.cs
- AssertUtility.cs
- DataServiceExpressionVisitor.cs
- TextDecoration.cs
- PassportAuthenticationModule.cs
- TerminatorSinks.cs
- CompiledQuery.cs
- TextEncodedRawTextWriter.cs
- XsdBuilder.cs
- SevenBitStream.cs
- BamlResourceDeserializer.cs
- EDesignUtil.cs
- XmlException.cs
- ObjectDataSourceEventArgs.cs
- Trace.cs
- X509CertificateTrustedIssuerElementCollection.cs
- TdsParserSessionPool.cs
- HtmlTitle.cs
- TextureBrush.cs
- Mappings.cs
- SafeLocalMemHandle.cs
- TimelineClockCollection.cs
- RoutedEvent.cs
- Evaluator.cs
- Delegate.cs
- BlurEffect.cs
- XmlILConstructAnalyzer.cs
- ZeroOpNode.cs
- WindowsClaimSet.cs
- AbstractExpressions.cs
- PropertyNames.cs
- XmlEntityReference.cs
- TextFormatterContext.cs
- MulticastIPAddressInformationCollection.cs