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
- ToolStripSplitStackLayout.cs
- SoapIgnoreAttribute.cs
- DocumentViewer.cs
- NameValueConfigurationElement.cs
- Application.cs
- AuthenticationService.cs
- SqlFlattener.cs
- XamlBuildProvider.cs
- XPathArrayIterator.cs
- ProxyWebPart.cs
- Hash.cs
- HttpChannelFactory.cs
- DocumentsTrace.cs
- HttpCookiesSection.cs
- ExponentialEase.cs
- FormatterConverter.cs
- PropertyPathWorker.cs
- ListBindableAttribute.cs
- SafeArrayTypeMismatchException.cs
- UInt16Converter.cs
- HwndSourceKeyboardInputSite.cs
- NetworkAddressChange.cs
- TransformPatternIdentifiers.cs
- IsolatedStorageFile.cs
- TextSelectionProcessor.cs
- PersianCalendar.cs
- AsyncDataRequest.cs
- MemoryStream.cs
- loginstatus.cs
- CompressStream.cs
- DataSysAttribute.cs
- LayoutEditorPart.cs
- UnsafeNativeMethodsMilCoreApi.cs
- TextEditorSpelling.cs
- XhtmlBasicTextBoxAdapter.cs
- SchemaNotation.cs
- MappingItemCollection.cs
- DataRowExtensions.cs
- WsatAdminException.cs
- DocumentApplicationJournalEntryEventArgs.cs
- PersonalizationStateInfoCollection.cs
- SqlDependencyListener.cs
- SafeRightsManagementEnvironmentHandle.cs
- PreparingEnlistment.cs
- PropertyInfo.cs
- MouseWheelEventArgs.cs
- RemoteEndpointMessageProperty.cs
- LinkConverter.cs
- XMLSyntaxException.cs
- HttpListenerContext.cs
- PasswordTextNavigator.cs
- SHA384Cng.cs
- PointCollectionValueSerializer.cs
- UInt32Converter.cs
- DataGridViewRowPrePaintEventArgs.cs
- NativeMethods.cs
- ToolStripEditorManager.cs
- FileFormatException.cs
- PropertyItem.cs
- TypedReference.cs
- XmlRawWriter.cs
- LoginViewDesigner.cs
- StringTraceRecord.cs
- IteratorFilter.cs
- BitmapCodecInfoInternal.cs
- DrawingContextWalker.cs
- WpfWebRequestHelper.cs
- LineServicesRun.cs
- ListViewUpdatedEventArgs.cs
- TableRow.cs
- FlatButtonAppearance.cs
- DataRecordInternal.cs
- LogAppendAsyncResult.cs
- TreeWalker.cs
- AppDomainManager.cs
- DataServiceHost.cs
- DocumentXPathNavigator.cs
- assertwrapper.cs
- HttpAsyncResult.cs
- LineServicesCallbacks.cs
- CardSpaceShim.cs
- GenericIdentity.cs
- ControlParameter.cs
- Security.cs
- listviewsubitemcollectioneditor.cs
- BamlResourceSerializer.cs
- HtmlEmptyTagControlBuilder.cs
- SqlServer2KCompatibilityCheck.cs
- AsyncCompletedEventArgs.cs
- DescendantOverDescendantQuery.cs
- BoundingRectTracker.cs
- DeviceSpecificDialogCachedState.cs
- CodeGeneratorOptions.cs
- SharedPerformanceCounter.cs
- SerializationHelper.cs
- MailBnfHelper.cs
- LineVisual.cs
- AnnotationComponentManager.cs
- SoapWriter.cs
- CqlLexerHelpers.cs