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
- MdImport.cs
- MachineKey.cs
- RelatedView.cs
- HttpApplicationFactory.cs
- CodeDirectiveCollection.cs
- StreamUpgradeInitiator.cs
- List.cs
- ConfigXmlSignificantWhitespace.cs
- BindingContext.cs
- EntityStoreSchemaFilterEntry.cs
- CodeStatementCollection.cs
- WhiteSpaceTrimStringConverter.cs
- XsltLoader.cs
- PageAsyncTask.cs
- SafeHGlobalHandleCritical.cs
- WinEventWrap.cs
- NativeMethodsCLR.cs
- CodeObjectCreateExpression.cs
- BitArray.cs
- URIFormatException.cs
- CaseExpr.cs
- XmlSchemaObject.cs
- DataGridViewButtonCell.cs
- LowerCaseStringConverter.cs
- ResourceWriter.cs
- OperationResponse.cs
- XmlPropertyBag.cs
- HwndSubclass.cs
- ConfigurationPropertyCollection.cs
- Decoder.cs
- NodeFunctions.cs
- BitmapCacheBrush.cs
- DataTableClearEvent.cs
- LinkDescriptor.cs
- AspNetSynchronizationContext.cs
- Wizard.cs
- PrimaryKeyTypeConverter.cs
- DynamicDocumentPaginator.cs
- Font.cs
- ActivationWorker.cs
- prefixendpointaddressmessagefiltertable.cs
- AdornedElementPlaceholder.cs
- SafeFileMappingHandle.cs
- TextRangeProviderWrapper.cs
- GC.cs
- UpdatePanelTriggerCollection.cs
- DataGridViewHeaderCell.cs
- TextParentUndoUnit.cs
- EntityDataSourceWizardForm.cs
- LinkArea.cs
- ControlTemplate.cs
- DataGridTableCollection.cs
- lengthconverter.cs
- Aggregates.cs
- MetricEntry.cs
- ValidatingPropertiesEventArgs.cs
- CopyAction.cs
- ThreadSafeList.cs
- NamespaceDecl.cs
- PrintDialogDesigner.cs
- WebBrowser.cs
- HwndSubclass.cs
- xmlformatgeneratorstatics.cs
- ThrowHelper.cs
- DocobjHost.cs
- HttpModule.cs
- HijriCalendar.cs
- WorkflowDesigner.cs
- Page.cs
- Comparer.cs
- ProfessionalColors.cs
- ListenerSessionConnection.cs
- List.cs
- EventPrivateKey.cs
- KeyToListMap.cs
- WebPartsPersonalization.cs
- NamedPipeConnectionPool.cs
- CollectionsUtil.cs
- SerializationInfoEnumerator.cs
- SafeCryptContextHandle.cs
- XmlAttributeCollection.cs
- DrawingCollection.cs
- FormViewInsertedEventArgs.cs
- PropertyGridEditorPart.cs
- CompareInfo.cs
- CheckBoxBaseAdapter.cs
- securitycriticaldataClass.cs
- IsolatedStoragePermission.cs
- AsyncStreamReader.cs
- ToolStripHighContrastRenderer.cs
- StateValidator.cs
- HandlerFactoryCache.cs
- linebase.cs
- ObjectDataSourceEventArgs.cs
- ListQueryResults.cs
- PersonalizationStateQuery.cs
- DigitalSignature.cs
- COM2Properties.cs
- CatalogZoneBase.cs
- SQLStringStorage.cs