Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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; } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PickBranchDesigner.xaml.cs
- Fx.cs
- AppDomainUnloadedException.cs
- ObjectRef.cs
- Registry.cs
- TrailingSpaceComparer.cs
- ViewGenerator.cs
- SequenceRange.cs
- XNodeNavigator.cs
- TypeToken.cs
- SocketInformation.cs
- ModelPropertyCollectionImpl.cs
- X509ThumbprintKeyIdentifierClause.cs
- XDRSchema.cs
- ListBoxItem.cs
- GenericTypeParameterBuilder.cs
- ToolBarButtonClickEvent.cs
- Typography.cs
- ConnectionStringSettings.cs
- TransactionProtocolConverter.cs
- CaseInsensitiveComparer.cs
- RadioButtonFlatAdapter.cs
- initElementDictionary.cs
- thaishape.cs
- While.cs
- RequestNavigateEventArgs.cs
- RecordManager.cs
- ExceptionUtil.cs
- ObjectDataProvider.cs
- AudioFileOut.cs
- ImageCollectionCodeDomSerializer.cs
- HttpRuntimeSection.cs
- BreakRecordTable.cs
- PerformanceCounterPermissionAttribute.cs
- GenerateTemporaryTargetAssembly.cs
- StreamResourceInfo.cs
- SystemSounds.cs
- XPathPatternBuilder.cs
- CacheChildrenQuery.cs
- BindingNavigatorDesigner.cs
- ImportCatalogPart.cs
- SendingRequestEventArgs.cs
- DetailsViewDesigner.cs
- GridViewDeletedEventArgs.cs
- ValidationError.cs
- WebConfigurationFileMap.cs
- InputProviderSite.cs
- CustomErrorsSectionWrapper.cs
- UInt16Converter.cs
- OracleBoolean.cs
- MouseEvent.cs
- TargetParameterCountException.cs
- CompensateDesigner.cs
- RightsManagementPermission.cs
- GraphicsContext.cs
- Behavior.cs
- HtmlInputHidden.cs
- ImageBrush.cs
- XmlSerializerVersionAttribute.cs
- GraphicsPathIterator.cs
- EntityContainerEmitter.cs
- RbTree.cs
- WebPartVerbsEventArgs.cs
- IdentifierService.cs
- BaseTreeIterator.cs
- COAUTHINFO.cs
- XamlRtfConverter.cs
- CompensationTokenData.cs
- HtmlUtf8RawTextWriter.cs
- ParserOptions.cs
- ValidationManager.cs
- CodeSnippetStatement.cs
- BitmapCodecInfoInternal.cs
- ClientUtils.cs
- ServiceModelPerformanceCounters.cs
- XmlSerializationGeneratedCode.cs
- FocusTracker.cs
- ActivityDesigner.cs
- HighContrastHelper.cs
- Membership.cs
- ObjectSet.cs
- DynamicObject.cs
- EncoderFallback.cs
- SmtpSection.cs
- ExpressionNode.cs
- XmlSchemaInfo.cs
- WindowsComboBox.cs
- MessageLogger.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- InvokeMethodActivityDesigner.cs
- InternalSafeNativeMethods.cs
- XPathExpr.cs
- DrawingContextDrawingContextWalker.cs
- NotImplementedException.cs
- OutputScope.cs
- XmlEntityReference.cs
- ErrorWrapper.cs
- WebPartDesigner.cs
- XmlBindingWorker.cs
- LockedHandleGlyph.cs