Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- SymmetricKeyWrap.cs
- ProxyGenerationError.cs
- TreeViewCancelEvent.cs
- GridViewAutoFormat.cs
- ObjectDataSourceMethodEventArgs.cs
- WorkflowServiceHostFactory.cs
- UndoManager.cs
- MulticastOption.cs
- DiscoveryServerProtocol.cs
- CodeBinaryOperatorExpression.cs
- SqlInternalConnectionSmi.cs
- UnicastIPAddressInformationCollection.cs
- InkCanvasSelectionAdorner.cs
- SerializationInfoEnumerator.cs
- ImplicitInputBrush.cs
- TrailingSpaceComparer.cs
- PrtCap_Public.cs
- WhiteSpaceTrimStringConverter.cs
- VersionValidator.cs
- RowUpdatingEventArgs.cs
- ItemContainerGenerator.cs
- COM2ExtendedBrowsingHandler.cs
- SmiEventSink.cs
- Timer.cs
- XmlCompatibilityReader.cs
- ExpressionBindingCollection.cs
- FunctionParameter.cs
- SymbolMethod.cs
- HttpApplication.cs
- BindingGroup.cs
- XmlChildNodes.cs
- Geometry3D.cs
- IODescriptionAttribute.cs
- ErrorTolerantObjectWriter.cs
- CacheVirtualItemsEvent.cs
- QueryableDataSource.cs
- MediaElement.cs
- InkCanvasFeedbackAdorner.cs
- EnumConverter.cs
- TracePayload.cs
- Span.cs
- CatalogPartDesigner.cs
- CryptoStream.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- DiscoveryCallbackBehavior.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- QueryPageSettingsEventArgs.cs
- DBCommandBuilder.cs
- AlignmentYValidation.cs
- BindingMemberInfo.cs
- EditableRegion.cs
- TableSectionStyle.cs
- SettingsBase.cs
- DodSequenceMerge.cs
- ExtensionElement.cs
- GraphicsPathIterator.cs
- HashCodeCombiner.cs
- TextChange.cs
- ConfigurationLockCollection.cs
- TextEndOfSegment.cs
- EncoderFallback.cs
- XmlCustomFormatter.cs
- QuaternionRotation3D.cs
- SelectionListDesigner.cs
- ParameterCollection.cs
- TemplateParser.cs
- ConnectionPoint.cs
- TemplateControlBuildProvider.cs
- Shared.cs
- DbProviderConfigurationHandler.cs
- PowerStatus.cs
- SchemaObjectWriter.cs
- COM2ColorConverter.cs
- DeviceSpecificChoice.cs
- DataGridViewAccessibleObject.cs
- TreeViewCancelEvent.cs
- InnerItemCollectionView.cs
- ClientRuntimeConfig.cs
- ProcessMessagesAsyncResult.cs
- Geometry3D.cs
- ExchangeUtilities.cs
- CheckBox.cs
- SchemaCollectionPreprocessor.cs
- ComMethodElementCollection.cs
- PropertyInfoSet.cs
- SubqueryRules.cs
- DataListCommandEventArgs.cs
- IsolatedStorageException.cs
- ServiceAuthorizationElement.cs
- JpegBitmapEncoder.cs
- SizeConverter.cs
- WebPartVerbCollection.cs
- MethodInfo.cs
- UrlMappingCollection.cs
- SecureUICommand.cs
- SafeNativeMethods.cs
- Marshal.cs
- GenericAuthenticationEventArgs.cs
- DataStreams.cs
- clipboard.cs