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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SHA384Managed.cs
- ProcessStartInfo.cs
- LazyInitializer.cs
- WmlSelectionListAdapter.cs
- WindowsListViewItemStartMenu.cs
- BuildProviderAppliesToAttribute.cs
- SignedPkcs7.cs
- FixedDocumentSequencePaginator.cs
- ExpressionParser.cs
- XMLSchema.cs
- TypographyProperties.cs
- ListView.cs
- LayoutDump.cs
- ListQueryResults.cs
- XmlNavigatorFilter.cs
- NameValuePair.cs
- EdmEntityTypeAttribute.cs
- ContextInformation.cs
- IdentityNotMappedException.cs
- PasswordDeriveBytes.cs
- AssociationTypeEmitter.cs
- XsdCachingReader.cs
- StringOutput.cs
- DoubleCollectionConverter.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- MatrixUtil.cs
- SecurityElement.cs
- base64Transforms.cs
- ThemeDictionaryExtension.cs
- RightsManagementPermission.cs
- SystemFonts.cs
- ResourceContainer.cs
- DecimalConstantAttribute.cs
- embossbitmapeffect.cs
- CodeLabeledStatement.cs
- GridViewSelectEventArgs.cs
- TextFormatter.cs
- CookieParameter.cs
- SystemIPInterfaceProperties.cs
- SQLSingleStorage.cs
- Transform.cs
- VectorCollectionConverter.cs
- CapabilitiesAssignment.cs
- COM2DataTypeToManagedDataTypeConverter.cs
- DataSourceXmlClassAttribute.cs
- UnsafeMethods.cs
- SharedStatics.cs
- IndicCharClassifier.cs
- DropDownList.cs
- SystemUdpStatistics.cs
- BamlLocalizableResource.cs
- ObjectReferenceStack.cs
- XmlnsPrefixAttribute.cs
- ExitEventArgs.cs
- MetadataCollection.cs
- SqlDeflator.cs
- CompilationSection.cs
- XMLDiffLoader.cs
- ProfileSettingsCollection.cs
- AssemblyCollection.cs
- WebRequestModuleElement.cs
- ListDictionary.cs
- TextRunCache.cs
- HideDisabledControlAdapter.cs
- MruCache.cs
- ColumnHeader.cs
- DbTransaction.cs
- LinqDataSourceEditData.cs
- XmlAttributeAttribute.cs
- TextWriter.cs
- ActivityInterfaces.cs
- HttpException.cs
- Stacktrace.cs
- DrawingVisual.cs
- ThreadStateException.cs
- XmlSchemaChoice.cs
- DataControlPagerLinkButton.cs
- CatalogUtil.cs
- SapiRecoInterop.cs
- XmlCharacterData.cs
- RuleSettingsCollection.cs
- BulletChrome.cs
- Reference.cs
- EventRecordWrittenEventArgs.cs
- SecuritySessionSecurityTokenProvider.cs
- CreateParams.cs
- DrawingVisual.cs
- HttpRequestMessageProperty.cs
- TemplateNameScope.cs
- MarshalDirectiveException.cs
- ItemsPresenter.cs
- Type.cs
- LambdaValue.cs
- PeerName.cs
- DeflateStreamAsyncResult.cs
- RadioButton.cs
- DrawingGroup.cs
- ExceptionNotification.cs
- ListControlBuilder.cs
- safemediahandle.cs