Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Runtime / CompilerServices / FixedBufferAttribute.cs / 1305376 / 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
- LinqDataSourceDeleteEventArgs.cs
- DataGridViewAutoSizeModeEventArgs.cs
- CallbackWrapper.cs
- DataGridRowAutomationPeer.cs
- ColorContext.cs
- AssociationTypeEmitter.cs
- WhereaboutsReader.cs
- XhtmlTextWriter.cs
- SchemaLookupTable.cs
- PnrpPermission.cs
- entityreference_tresulttype.cs
- QueryOperationResponseOfT.cs
- AsyncStreamReader.cs
- ReplacementText.cs
- UIElementPropertyUndoUnit.cs
- DesignerSerializerAttribute.cs
- MouseOverProperty.cs
- XmlIlGenerator.cs
- TemplatedWizardStep.cs
- NativeMethods.cs
- EditorPart.cs
- HelpEvent.cs
- SequenceDesignerAccessibleObject.cs
- HttpStaticObjectsCollectionBase.cs
- WebReferencesBuildProvider.cs
- WorkflowInvoker.cs
- FrameworkElementAutomationPeer.cs
- LinqDataSourceValidationException.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- Grid.cs
- TraceSwitch.cs
- TitleStyle.cs
- MaskPropertyEditor.cs
- XPathDescendantIterator.cs
- InputScopeConverter.cs
- RootBuilder.cs
- OrderedParallelQuery.cs
- TreeView.cs
- BinaryWriter.cs
- NameValueConfigurationCollection.cs
- SemanticResultKey.cs
- NotifyParentPropertyAttribute.cs
- MetadataCache.cs
- SecurityContextKeyIdentifierClause.cs
- SessionParameter.cs
- OneWayChannelListener.cs
- NestedContainer.cs
- ArgumentNullException.cs
- DataViewListener.cs
- XmlDataLoader.cs
- ISAPIWorkerRequest.cs
- HostVisual.cs
- Dump.cs
- SchemaElementDecl.cs
- ValueConversionAttribute.cs
- AdornerHitTestResult.cs
- ListViewCancelEventArgs.cs
- DecoderExceptionFallback.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- ProxyGenerator.cs
- SqlWebEventProvider.cs
- RegisteredHiddenField.cs
- ScrollEventArgs.cs
- KeyConstraint.cs
- HMACSHA1.cs
- InfoCardSymmetricCrypto.cs
- TypeKeyValue.cs
- TemplateControlCodeDomTreeGenerator.cs
- ControlBuilder.cs
- MetadataArtifactLoaderCompositeResource.cs
- ApplicationServiceManager.cs
- ChildrenQuery.cs
- DrawListViewItemEventArgs.cs
- XsdDataContractExporter.cs
- CapabilitiesAssignment.cs
- FixedSOMTextRun.cs
- UnsafeNativeMethods.cs
- InstanceLockException.cs
- Relationship.cs
- XmlTextWriter.cs
- XmlILOptimizerVisitor.cs
- ImageListStreamer.cs
- SchemaImporterExtensionElement.cs
- DefaultValidator.cs
- SafeHandles.cs
- DataSourceViewSchemaConverter.cs
- SQLMembershipProvider.cs
- QilFactory.cs
- ListMarkerSourceInfo.cs
- BindToObject.cs
- TrackBarRenderer.cs
- TransportOutputChannel.cs
- DbTransaction.cs
- NullRuntimeConfig.cs
- SelectedDatesCollection.cs
- RequestCacheEntry.cs
- TraceListeners.cs
- FixedSOMTextRun.cs
- WindowsSysHeader.cs
- TagPrefixCollection.cs