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
- ItemChangedEventArgs.cs
- Knowncolors.cs
- TextBoxDesigner.cs
- NetPeerTcpBindingElement.cs
- DesignerDataParameter.cs
- WebBrowserNavigatingEventHandler.cs
- LinkedDataMemberFieldEditor.cs
- DrawingVisual.cs
- TreeWalker.cs
- ImportContext.cs
- LiteralText.cs
- TraceLevelHelper.cs
- ComPlusThreadInitializer.cs
- AsyncResult.cs
- ToolStripStatusLabel.cs
- ComponentChangingEvent.cs
- GeometryHitTestParameters.cs
- ToolboxItemSnapLineBehavior.cs
- RuleConditionDialog.Designer.cs
- ConfigurationLocation.cs
- ContractComponent.cs
- UpDownEvent.cs
- DBCommand.cs
- VirtualizingPanel.cs
- DateTimeSerializationSection.cs
- ObjectQuery.cs
- Substitution.cs
- EntityDataSourceSelectedEventArgs.cs
- FunctionDetailsReader.cs
- XhtmlBasicLiteralTextAdapter.cs
- UniqueSet.cs
- CodeTypeOfExpression.cs
- NoneExcludedImageIndexConverter.cs
- UriExt.cs
- BatchParser.cs
- COM2FontConverter.cs
- SqlNamer.cs
- XPathException.cs
- XmlAttribute.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- SafePointer.cs
- VisualTransition.cs
- HeaderCollection.cs
- HtmlProps.cs
- ExpressionNode.cs
- PtsContext.cs
- DbConnectionStringCommon.cs
- PerformanceCounterLib.cs
- BaseUriHelper.cs
- CodeCompiler.cs
- SinglePageViewer.cs
- RadioButtonList.cs
- DBCSCodePageEncoding.cs
- AmbientProperties.cs
- StrongName.cs
- BackStopAuthenticationModule.cs
- DataRecordInfo.cs
- SqlDataSourceTableQuery.cs
- DataSourceBooleanViewSchemaConverter.cs
- DataExpression.cs
- updateconfighost.cs
- XPathDescendantIterator.cs
- CultureTable.cs
- ViewValidator.cs
- GridViewEditEventArgs.cs
- WrappingXamlSchemaContext.cs
- Types.cs
- WebServicesInteroperability.cs
- NameValueCollection.cs
- Type.cs
- EventWaitHandleSecurity.cs
- Events.cs
- FontWeights.cs
- WebResourceAttribute.cs
- NodeInfo.cs
- ActivityExecutorSurrogate.cs
- FileAuthorizationModule.cs
- OleDbException.cs
- uribuilder.cs
- FileSecurity.cs
- wgx_exports.cs
- COAUTHINFO.cs
- FixedSOMSemanticBox.cs
- MethodBuilderInstantiation.cs
- PtsHost.cs
- HtmlTextBoxAdapter.cs
- HelpEvent.cs
- Propagator.cs
- HttpWriter.cs
- ResourceCodeDomSerializer.cs
- AutoGeneratedFieldProperties.cs
- Clock.cs
- HMACMD5.cs
- Parsers.cs
- XmlCompatibilityReader.cs
- ContainerControl.cs
- RepeatBehavior.cs
- DataGridItemCollection.cs
- Pair.cs
- DataGridColumnReorderingEventArgs.cs