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
- CodeGenerator.cs
- ServiceBehaviorAttribute.cs
- CssClassPropertyAttribute.cs
- WriteTimeStream.cs
- TimeSpanConverter.cs
- TrustManager.cs
- RadioButtonList.cs
- ActionFrame.cs
- Point3DCollection.cs
- IndentedWriter.cs
- EventProviderTraceListener.cs
- TextElement.cs
- TextBoxAutomationPeer.cs
- SchemaImporterExtensionsSection.cs
- WindowsBrush.cs
- StrokeNode.cs
- InkCanvasSelection.cs
- clipboard.cs
- PiiTraceSource.cs
- ModuleElement.cs
- FixedSOMElement.cs
- MissingManifestResourceException.cs
- ChtmlCalendarAdapter.cs
- XPathNodeIterator.cs
- WorkflowTransactionOptions.cs
- TokenBasedSetEnumerator.cs
- ListViewItemEventArgs.cs
- ScanQueryOperator.cs
- Atom10FormatterFactory.cs
- SHA1CryptoServiceProvider.cs
- ControlLocalizer.cs
- PageBuildProvider.cs
- ProjectionCamera.cs
- LineBreak.cs
- BinaryMethodMessage.cs
- Matrix.cs
- PersonalizablePropertyEntry.cs
- AssemblySettingAttributes.cs
- SerializationObjectManager.cs
- ScrollItemPattern.cs
- StaticFileHandler.cs
- DetailsViewDeleteEventArgs.cs
- RemoveStoryboard.cs
- RowUpdatingEventArgs.cs
- PKCS1MaskGenerationMethod.cs
- RightsManagementEncryptionTransform.cs
- IItemProperties.cs
- TraceLevelStore.cs
- DurableInstanceManager.cs
- FileSystemEnumerable.cs
- SByte.cs
- SqlDependency.cs
- TypeElement.cs
- ResourceContainer.cs
- DataBindingCollectionEditor.cs
- HtmlInputSubmit.cs
- TextElementEnumerator.cs
- XmlProcessingInstruction.cs
- WindowsFormsLinkLabel.cs
- infer.cs
- Scene3D.cs
- BindingWorker.cs
- WeakReferenceKey.cs
- InputLangChangeRequestEvent.cs
- ICspAsymmetricAlgorithm.cs
- ValueSerializer.cs
- CapabilitiesSection.cs
- Rules.cs
- MetadataCollection.cs
- ContainerControl.cs
- _SslState.cs
- DataQuery.cs
- IndexExpression.cs
- Environment.cs
- RightsManagementEncryptionTransform.cs
- TrustSection.cs
- CompilationUnit.cs
- UidManager.cs
- ApplicationDirectory.cs
- CategoryNameCollection.cs
- StandardMenuStripVerb.cs
- TagPrefixCollection.cs
- ObjectDataSourceMethodEventArgs.cs
- OdbcCommandBuilder.cs
- RowTypeElement.cs
- SourceFileBuildProvider.cs
- IdentityReference.cs
- SerializationAttributes.cs
- SafeRightsManagementSessionHandle.cs
- OutputCacheProviderCollection.cs
- PageThemeBuildProvider.cs
- NativeMethods.cs
- FunctionImportMapping.cs
- SynchronousChannel.cs
- BindingManagerDataErrorEventArgs.cs
- ExtendedPropertiesHandler.cs
- GenericUI.cs
- TraceSection.cs
- CalendarBlackoutDatesCollection.cs
- XmlDictionaryReader.cs