Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- XpsS0ValidatingLoader.cs
- ArgumentsParser.cs
- CodeDirectoryCompiler.cs
- serverconfig.cs
- FormViewActionList.cs
- DtcInterfaces.cs
- IUnknownConstantAttribute.cs
- RenderDataDrawingContext.cs
- QilStrConcat.cs
- ProtectedConfigurationSection.cs
- Knowncolors.cs
- TeredoHelper.cs
- AssemblyBuilder.cs
- ContractMethodParameterInfo.cs
- DataError.cs
- TraceRecord.cs
- InkCanvasInnerCanvas.cs
- UIElement3DAutomationPeer.cs
- OrderedDictionary.cs
- AdjustableArrowCap.cs
- TextBoxBase.cs
- PackageDigitalSignatureManager.cs
- ScriptControl.cs
- ClosureBinding.cs
- RepeaterItemEventArgs.cs
- CharEntityEncoderFallback.cs
- GeometryConverter.cs
- ExpressionPrinter.cs
- TypeInformation.cs
- MarkerProperties.cs
- CacheSection.cs
- EndpointIdentityConverter.cs
- EditingScope.cs
- PrintPageEvent.cs
- SimplePropertyEntry.cs
- _TransmitFileOverlappedAsyncResult.cs
- ListSourceHelper.cs
- HttpResponseInternalWrapper.cs
- RSAPKCS1SignatureFormatter.cs
- CodeGroup.cs
- ToolStripSeparator.cs
- DebugController.cs
- TextEndOfParagraph.cs
- ExclusiveTcpTransportManager.cs
- UiaCoreTypesApi.cs
- ClientRequest.cs
- Part.cs
- HandlerMappingMemo.cs
- Condition.cs
- ToolStripControlHost.cs
- BaseDataBoundControlDesigner.cs
- LinqDataSourceSelectEventArgs.cs
- SynchronizationContext.cs
- TextTreeFixupNode.cs
- XsdBuildProvider.cs
- updateconfighost.cs
- ScriptingScriptResourceHandlerSection.cs
- entityreference_tresulttype.cs
- FileLevelControlBuilderAttribute.cs
- DbConvert.cs
- UserControlBuildProvider.cs
- ManagedIStream.cs
- MimeMapping.cs
- RemoteArgument.cs
- QilScopedVisitor.cs
- LinqDataSourceUpdateEventArgs.cs
- SectionXmlInfo.cs
- EventLogPermissionAttribute.cs
- PasswordRecovery.cs
- ExpressionEditorAttribute.cs
- FormsIdentity.cs
- _ContextAwareResult.cs
- SqlReferenceCollection.cs
- HtmlTitle.cs
- ExtensionFile.cs
- WindowsUpDown.cs
- PropertyDescriptorGridEntry.cs
- UpDownBase.cs
- XmlUtilWriter.cs
- FilterableAttribute.cs
- TimeSpanValidator.cs
- ServiceModelConfiguration.cs
- QilInvoke.cs
- XmlILModule.cs
- BrowsableAttribute.cs
- CopyEncoder.cs
- RegexWorker.cs
- Pen.cs
- ThrowHelper.cs
- SqlBuilder.cs
- RecommendedAsConfigurableAttribute.cs
- MetadataFile.cs
- CodeMemberProperty.cs
- StylusSystemGestureEventArgs.cs
- HttpRuntime.cs
- XmlSchemaAnnotation.cs
- DataGridCellEditEndingEventArgs.cs
- VideoDrawing.cs
- Helpers.cs
- InteropTrackingRecord.cs