Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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; } } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ClickablePoint.cs
- TextContainerHelper.cs
- CellTreeNodeVisitors.cs
- BindingContext.cs
- ComPlusDiagnosticTraceSchemas.cs
- ModuleConfigurationInfo.cs
- QueryPageSettingsEventArgs.cs
- ProviderConnectionPoint.cs
- HtmlElement.cs
- PriorityQueue.cs
- SvcMapFileSerializer.cs
- LocalTransaction.cs
- ResourcePool.cs
- KoreanLunisolarCalendar.cs
- SplashScreenNativeMethods.cs
- EmbeddedMailObject.cs
- SizeConverter.cs
- ZipIOCentralDirectoryBlock.cs
- RelationshipType.cs
- XPathPatternParser.cs
- DataGridSortCommandEventArgs.cs
- SByte.cs
- CapabilitiesUse.cs
- ContentType.cs
- BeginSelectCardRequest.cs
- Workspace.cs
- MouseEvent.cs
- DataSourceCollectionBase.cs
- _Win32.cs
- CodeExporter.cs
- MailBnfHelper.cs
- Line.cs
- TemplatedWizardStep.cs
- GridViewItemAutomationPeer.cs
- LicenseProviderAttribute.cs
- Evaluator.cs
- InvalidComObjectException.cs
- FrameDimension.cs
- ServiceParser.cs
- ContractListAdapter.cs
- VisualBrush.cs
- EntityCommandDefinition.cs
- ParamArrayAttribute.cs
- PagerSettings.cs
- Pts.cs
- ServerIdentity.cs
- NetworkInformationException.cs
- MimeImporter.cs
- BrushValueSerializer.cs
- Propagator.Evaluator.cs
- PingOptions.cs
- StylusPlugInCollection.cs
- ServerIdentity.cs
- HttpConfigurationContext.cs
- EncryptedType.cs
- TreeWalkHelper.cs
- NativeMethodsOther.cs
- HtmlElementCollection.cs
- EntityParameterCollection.cs
- ReplyChannelAcceptor.cs
- XmlIgnoreAttribute.cs
- ping.cs
- StatusBarAutomationPeer.cs
- Queue.cs
- ForeignKeyConstraint.cs
- JsonObjectDataContract.cs
- OleServicesContext.cs
- ButtonBaseAutomationPeer.cs
- SoapSchemaMember.cs
- WeakHashtable.cs
- Color.cs
- _NestedSingleAsyncResult.cs
- ListViewGroupCollectionEditor.cs
- DeploymentSectionCache.cs
- DbBuffer.cs
- HiddenFieldPageStatePersister.cs
- ValidationRule.cs
- SizeConverter.cs
- DataMemberConverter.cs
- CustomError.cs
- InternalBufferManager.cs
- CounterSample.cs
- _IPv4Address.cs
- PartBasedPackageProperties.cs
- XmlCharacterData.cs
- ReadOnlyObservableCollection.cs
- XmlSchemaSimpleContentRestriction.cs
- CategoryValueConverter.cs
- ResourceDescriptionAttribute.cs
- FilterElement.cs
- XmlDesignerDataSourceView.cs
- _SecureChannel.cs
- PropertyChangedEventManager.cs
- SendMessageChannelCache.cs
- WebServiceParameterData.cs
- HtmlFormParameterReader.cs
- ProfileEventArgs.cs
- WebConfigurationHostFileChange.cs
- NumberFormatInfo.cs
- TempEnvironment.cs