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
- CodeAccessSecurityEngine.cs
- ClientFormsIdentity.cs
- WebPartCloseVerb.cs
- QuaternionKeyFrameCollection.cs
- PersonalizationState.cs
- ObjectListField.cs
- XmlRootAttribute.cs
- StrokeCollection2.cs
- IList.cs
- TextFindEngine.cs
- EdmSchemaError.cs
- TextElementEditingBehaviorAttribute.cs
- ConversionContext.cs
- DataGridViewCellCancelEventArgs.cs
- JsonReaderDelegator.cs
- ThemeDictionaryExtension.cs
- SqlBuilder.cs
- FastEncoderWindow.cs
- SchemaLookupTable.cs
- WinEventHandler.cs
- SecurityContext.cs
- DateTimeUtil.cs
- SessionEndingCancelEventArgs.cs
- VectorAnimationBase.cs
- SwitchAttribute.cs
- Stream.cs
- FontWeight.cs
- DeobfuscatingStream.cs
- DesignConnectionCollection.cs
- ViewPort3D.cs
- ListView.cs
- SecurityAppliedMessage.cs
- ParameterCollection.cs
- DictionaryEntry.cs
- MarkupObject.cs
- WebPartChrome.cs
- DirectionalLight.cs
- TargetInvocationException.cs
- HttpHandlerActionCollection.cs
- Stack.cs
- NumericUpDownAccelerationCollection.cs
- KeyValuePair.cs
- OperationResponse.cs
- StyleCollection.cs
- LogLogRecordHeader.cs
- SqlVisitor.cs
- APCustomTypeDescriptor.cs
- DiagnosticEventProvider.cs
- ObjectQueryProvider.cs
- GifBitmapDecoder.cs
- AffineTransform3D.cs
- Empty.cs
- XmlChildNodes.cs
- RegistrySecurity.cs
- AlternateViewCollection.cs
- Evidence.cs
- WindowsListViewGroup.cs
- srgsitem.cs
- NativeMethodsOther.cs
- CodeDirectionExpression.cs
- Label.cs
- FloatAverageAggregationOperator.cs
- PropertyBuilder.cs
- SafeSystemMetrics.cs
- ListBoxItem.cs
- Serializer.cs
- WebConfigurationManager.cs
- CompModSwitches.cs
- basecomparevalidator.cs
- ClosableStream.cs
- ServiceInfo.cs
- MarkupObject.cs
- DataTableNewRowEvent.cs
- WindowsServiceElement.cs
- FileVersion.cs
- BindingValueChangedEventArgs.cs
- StatusBarItemAutomationPeer.cs
- UidPropertyAttribute.cs
- RequestQueue.cs
- WebServiceBindingAttribute.cs
- LayoutTable.cs
- TrustLevel.cs
- UseManagedPresentationBindingElementImporter.cs
- SchemaElementLookUpTableEnumerator.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- RightsController.cs
- SocketAddress.cs
- SliderAutomationPeer.cs
- SoapMessage.cs
- DateTimeValueSerializerContext.cs
- RegularExpressionValidator.cs
- Selection.cs
- WebPartsPersonalization.cs
- WindowsStatusBar.cs
- AssemblyResourceLoader.cs
- AsyncPostBackTrigger.cs
- TableRow.cs
- ExpressionNode.cs
- FloaterParaClient.cs
- ContextMarshalException.cs