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

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Int32CollectionConverter.cs
- DataGridViewSelectedColumnCollection.cs
- assertwrapper.cs
- ContextMenuAutomationPeer.cs
- ThousandthOfEmRealDoubles.cs
- ASCIIEncoding.cs
- SchemaNames.cs
- AuditLog.cs
- LateBoundChannelParameterCollection.cs
- RtfNavigator.cs
- Line.cs
- EncryptedKey.cs
- ReceiveContent.cs
- MissingMethodException.cs
- SpellerHighlightLayer.cs
- DesignTimeTemplateParser.cs
- Evidence.cs
- XmlEntityReference.cs
- SafeEventLogReadHandle.cs
- DeadLetterQueue.cs
- CompensationToken.cs
- SynchronizedInputProviderWrapper.cs
- NullableConverter.cs
- Rectangle.cs
- RSAPKCS1SignatureFormatter.cs
- ServiceReference.cs
- Rect3DConverter.cs
- ToolStripManager.cs
- AssemblyInfo.cs
- HistoryEventArgs.cs
- InstanceData.cs
- TemplateManager.cs
- FormViewInsertedEventArgs.cs
- ButtonChrome.cs
- LinqDataSourceValidationException.cs
- CheckBox.cs
- XamlInterfaces.cs
- ToolStripArrowRenderEventArgs.cs
- ResponseStream.cs
- TableAdapterManagerNameHandler.cs
- CodeNamespaceImportCollection.cs
- EventMappingSettings.cs
- StrongName.cs
- TokenizerHelper.cs
- CompilerScopeManager.cs
- SamlAdvice.cs
- SymbolDocumentGenerator.cs
- ApplicationTrust.cs
- CapabilitiesState.cs
- ChtmlTextWriter.cs
- LocatorGroup.cs
- ChangeConflicts.cs
- ManagementObjectSearcher.cs
- StringCollection.cs
- DebugView.cs
- AspNetCompatibilityRequirementsMode.cs
- VectorCollection.cs
- RowCache.cs
- DataGridViewLinkColumn.cs
- FileLogRecordEnumerator.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- PanelStyle.cs
- TimeStampChecker.cs
- NeutralResourcesLanguageAttribute.cs
- ProxyWebPartManagerDesigner.cs
- Label.cs
- XmlHierarchyData.cs
- BindingElementCollection.cs
- ClientRuntimeConfig.cs
- SelectionWordBreaker.cs
- Win32.cs
- BindingWorker.cs
- CompilationUtil.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- CodeCatchClause.cs
- RawTextInputReport.cs
- CodeTypeDeclarationCollection.cs
- WebServiceEnumData.cs
- ExpressionBinding.cs
- WebPartHeaderCloseVerb.cs
- DynamicPropertyHolder.cs
- AmbientLight.cs
- StatusBarDesigner.cs
- SecurityAlgorithmSuite.cs
- DataRowCollection.cs
- WebEventTraceProvider.cs
- FilterQuery.cs
- DelegateArgumentReference.cs
- DataGridToolTip.cs
- XmlSchemaAny.cs
- StorageEntityContainerMapping.cs
- Content.cs
- TraceLog.cs
- WCFModelStrings.Designer.cs
- XPathCompileException.cs
- NonClientArea.cs
- SettingsAttributes.cs
- InternalConfigRoot.cs
- NameSpaceEvent.cs
- ArraySegment.cs