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
- TextEditorContextMenu.cs
- PropertyRef.cs
- DesignerExtenders.cs
- RuntimeConfig.cs
- Operator.cs
- Filter.cs
- WinFormsComponentEditor.cs
- MemberAssignmentAnalysis.cs
- EntityContainer.cs
- ToolboxItemSnapLineBehavior.cs
- SafeFreeMibTable.cs
- Vector3DCollectionConverter.cs
- FileClassifier.cs
- DataGridLengthConverter.cs
- SettingsPropertyValueCollection.cs
- IndexingContentUnit.cs
- DataServiceResponse.cs
- WsdlWriter.cs
- CompilationPass2Task.cs
- ISFClipboardData.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- PageTheme.cs
- RecordManager.cs
- TimelineClockCollection.cs
- FileUpload.cs
- PowerStatus.cs
- RoleManagerEventArgs.cs
- DataGridHeaderBorder.cs
- ClientSettingsProvider.cs
- DesignerForm.cs
- CurrentChangedEventManager.cs
- TraceContext.cs
- LineSegment.cs
- EntityCommandDefinition.cs
- ObjectHelper.cs
- IItemContainerGenerator.cs
- DropShadowBitmapEffect.cs
- PanelDesigner.cs
- VariableAction.cs
- SafeNativeMethods.cs
- MasterPage.cs
- TrustLevelCollection.cs
- StyleModeStack.cs
- MaterializeFromAtom.cs
- FormViewModeEventArgs.cs
- GZipUtils.cs
- TemplateLookupAction.cs
- MouseOverProperty.cs
- ResXBuildProvider.cs
- ListViewInsertedEventArgs.cs
- ExtensionQuery.cs
- ExpressionPrefixAttribute.cs
- PreProcessor.cs
- EventSinkHelperWriter.cs
- Scheduling.cs
- UntrustedRecipientException.cs
- QueryableFilterRepeater.cs
- ManagementClass.cs
- Util.cs
- XmlSchemaDocumentation.cs
- XmlSchemaInferenceException.cs
- SplitContainer.cs
- EncoderExceptionFallback.cs
- UIElementAutomationPeer.cs
- NameValuePermission.cs
- CollectionViewGroup.cs
- StringArrayConverter.cs
- DataColumnPropertyDescriptor.cs
- XmlIlGenerator.cs
- TargetPerspective.cs
- MatchingStyle.cs
- DataFormat.cs
- CngKey.cs
- ExchangeUtilities.cs
- NamedElement.cs
- SQLDecimal.cs
- DoubleConverter.cs
- TextEditorCopyPaste.cs
- AsmxEndpointPickerExtension.cs
- RSAOAEPKeyExchangeFormatter.cs
- OracleBinary.cs
- HttpWebResponse.cs
- DateTimeFormatInfo.cs
- XmlEncodedRawTextWriter.cs
- RotateTransform.cs
- PathSegmentCollection.cs
- ReadOnlyObservableCollection.cs
- GCHandleCookieTable.cs
- AnnotationStore.cs
- ProcessModuleCollection.cs
- ServiceHostFactory.cs
- RawKeyboardInputReport.cs
- StylusSystemGestureEventArgs.cs
- SecurityRuntime.cs
- ResXDataNode.cs
- InvalidComObjectException.cs
- ServiceNotStartedException.cs
- HttpPostedFile.cs
- ChangePassword.cs
- DesignerVerbToolStripMenuItem.cs