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
- PointCollectionValueSerializer.cs
- DataGridViewDataConnection.cs
- SystemMulticastIPAddressInformation.cs
- StorageEndPropertyMapping.cs
- WebPartUserCapability.cs
- WasAdminWrapper.cs
- CssTextWriter.cs
- ComboBoxRenderer.cs
- WebRequestModuleElement.cs
- SmiMetaDataProperty.cs
- WebPartConnectionsDisconnectVerb.cs
- HotSpotCollection.cs
- StructuralObject.cs
- XmlAttributeCache.cs
- WhiteSpaceTrimStringConverter.cs
- MultiTargetingUtil.cs
- SqlServer2KCompatibilityCheck.cs
- GridViewRowCollection.cs
- AccessedThroughPropertyAttribute.cs
- SecurityKeyType.cs
- IPipelineRuntime.cs
- ArcSegment.cs
- JapaneseCalendar.cs
- XmlComment.cs
- FunctionImportMapping.cs
- File.cs
- CrossContextChannel.cs
- FreezableOperations.cs
- DataGridTableCollection.cs
- QuadraticBezierSegment.cs
- XmlSchemaInfo.cs
- Thickness.cs
- FolderBrowserDialog.cs
- StreamInfo.cs
- EntitySetBase.cs
- ValueProviderWrapper.cs
- DataRow.cs
- CompositeTypefaceMetrics.cs
- TrackingMemoryStreamFactory.cs
- UIElement3D.cs
- ArraySegment.cs
- WindowsFont.cs
- SettingsSection.cs
- SelectedPathEditor.cs
- DirectionalLight.cs
- TrackBar.cs
- SecurityTokenTypes.cs
- AssemblyName.cs
- securitycriticaldataClass.cs
- ToolboxItemFilterAttribute.cs
- contentDescriptor.cs
- DataBinder.cs
- SettingsProperty.cs
- RoleManagerEventArgs.cs
- EventProviderWriter.cs
- WebMethodAttribute.cs
- ColorMap.cs
- SiteMapSection.cs
- StringExpressionSet.cs
- AdapterUtil.cs
- ToolStripRenderEventArgs.cs
- TemplateControlBuildProvider.cs
- Material.cs
- AppDomainUnloadedException.cs
- DbParameterHelper.cs
- ConnectorSelectionGlyph.cs
- FormView.cs
- BindingFormattingDialog.cs
- DbProviderServices.cs
- COM2ExtendedTypeConverter.cs
- HtmlImage.cs
- TraceListener.cs
- DataProtection.cs
- SystemIcmpV6Statistics.cs
- InvalidWMPVersionException.cs
- FreezableOperations.cs
- ObjectParameter.cs
- MethodCallTranslator.cs
- documentsequencetextcontainer.cs
- ResourcesBuildProvider.cs
- _AutoWebProxyScriptHelper.cs
- StylusEditingBehavior.cs
- StoreItemCollection.Loader.cs
- MatrixAnimationUsingPath.cs
- EdmTypeAttribute.cs
- DataBindingHandlerAttribute.cs
- RegistryDataKey.cs
- ParameterToken.cs
- RangeValueProviderWrapper.cs
- BookmarkWorkItem.cs
- CodeRemoveEventStatement.cs
- __FastResourceComparer.cs
- Attributes.cs
- IteratorFilter.cs
- RotateTransform3D.cs
- Debug.cs
- ListBindingConverter.cs
- Pen.cs
- ObjectCacheHost.cs
- RedistVersionInfo.cs