Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- SqlBuilder.cs
- VarInfo.cs
- FormatterConverter.cs
- XmlWrappingReader.cs
- ByteConverter.cs
- SecurityElement.cs
- CalendarData.cs
- X509SubjectKeyIdentifierClause.cs
- ToolStripDropDownItem.cs
- ControlTemplate.cs
- MemoryFailPoint.cs
- SecurityCookieModeValidator.cs
- ExchangeUtilities.cs
- _Win32.cs
- ValueSerializerAttribute.cs
- ReliableMessagingVersion.cs
- DataServiceConfiguration.cs
- ScriptingProfileServiceSection.cs
- ToolStripRendererSwitcher.cs
- TriggerBase.cs
- DataSourceCache.cs
- BaseTemplateBuildProvider.cs
- MetadataStore.cs
- UrlMappingsModule.cs
- XmlnsDictionary.cs
- NotConverter.cs
- HttpProcessUtility.cs
- AVElementHelper.cs
- Attributes.cs
- EqualityArray.cs
- WizardPanel.cs
- reliableinputsessionchannel.cs
- WindowsListViewItemStartMenu.cs
- RolePrincipal.cs
- OperatorExpressions.cs
- NumericPagerField.cs
- SQLBinaryStorage.cs
- FixedDocumentSequencePaginator.cs
- XmlUtilWriter.cs
- DataObjectPastingEventArgs.cs
- NamedPipeConnectionPoolSettings.cs
- ContentPlaceHolder.cs
- ViewEventArgs.cs
- TypeUtil.cs
- FormsAuthenticationUser.cs
- ObjectComplexPropertyMapping.cs
- basemetadatamappingvisitor.cs
- PrimarySelectionAdorner.cs
- WrapperSecurityCommunicationObject.cs
- mansign.cs
- Hex.cs
- SourceFileBuildProvider.cs
- Int64KeyFrameCollection.cs
- MenuItemCollection.cs
- EntityClassGenerator.cs
- ErrorsHelper.cs
- BitStack.cs
- RawStylusInputCustomData.cs
- SqlSelectStatement.cs
- SortQuery.cs
- AttachedAnnotationChangedEventArgs.cs
- DependencyObjectValidator.cs
- StringAnimationBase.cs
- MessageSmuggler.cs
- XmlValueConverter.cs
- ServiceMemoryGates.cs
- ControlBuilderAttribute.cs
- SocketException.cs
- ConfigurationLockCollection.cs
- Native.cs
- XmlQueryContext.cs
- ProgressBarAutomationPeer.cs
- SimpleTypeResolver.cs
- Selection.cs
- LayoutDump.cs
- ConnectionInterfaceCollection.cs
- IBuiltInEvidence.cs
- RectangleHotSpot.cs
- ExpandCollapseProviderWrapper.cs
- ADRoleFactory.cs
- Rijndael.cs
- TaskScheduler.cs
- TransformerConfigurationWizardBase.cs
- GlobalizationSection.cs
- FormClosedEvent.cs
- LayoutSettings.cs
- ClosableStream.cs
- StrokeNodeEnumerator.cs
- FunctionDetailsReader.cs
- MetadataSource.cs
- TemplatedAdorner.cs
- PathSegmentCollection.cs
- ListSortDescription.cs
- StrokeDescriptor.cs
- Queue.cs
- _SslSessionsCache.cs
- AlternateViewCollection.cs
- CryptoStream.cs
- ProcessInfo.cs
- PointConverter.cs