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
- AsymmetricKeyExchangeFormatter.cs
- RequestTimeoutManager.cs
- FacetDescriptionElement.cs
- JavaScriptString.cs
- DataContractJsonSerializer.cs
- SQLBoolean.cs
- WebPartDescription.cs
- MembershipSection.cs
- XpsStructure.cs
- DataTrigger.cs
- DrawingGroup.cs
- LicenseManager.cs
- EmptyEnumerable.cs
- KnownIds.cs
- ResourcesGenerator.cs
- VarRefManager.cs
- SymbolPair.cs
- FrameworkRichTextComposition.cs
- RelationshipFixer.cs
- ClientUrlResolverWrapper.cs
- JsonReaderWriterFactory.cs
- AsyncPostBackErrorEventArgs.cs
- SharedPersonalizationStateInfo.cs
- FullTextLine.cs
- CheckBoxPopupAdapter.cs
- ByteAnimationUsingKeyFrames.cs
- PolyBezierSegment.cs
- NativeCompoundFileAPIs.cs
- _LazyAsyncResult.cs
- GradientSpreadMethodValidation.cs
- SoapObjectWriter.cs
- SiteMapDataSource.cs
- RulePatternOps.cs
- CommandConverter.cs
- PageBreakRecord.cs
- JsonDeserializer.cs
- Point3DAnimationUsingKeyFrames.cs
- WebPartHelpVerb.cs
- DataColumnPropertyDescriptor.cs
- ConstructorExpr.cs
- CompositeActivityCodeGenerator.cs
- validation.cs
- SystemNetworkInterface.cs
- PathNode.cs
- BaseInfoTable.cs
- ColorConverter.cs
- ChtmlLinkAdapter.cs
- XPathNodePointer.cs
- XmlBinaryReader.cs
- BindingEntityInfo.cs
- XmlSchemas.cs
- SqlClientWrapperSmiStreamChars.cs
- Win32SafeHandles.cs
- KeyNotFoundException.cs
- SchemaEntity.cs
- FontFamilyConverter.cs
- HtmlSelect.cs
- XamlToRtfWriter.cs
- RtfFormatStack.cs
- ClientFormsAuthenticationCredentials.cs
- GZipUtils.cs
- NetworkInformationPermission.cs
- PointConverter.cs
- WebPartCatalogAddVerb.cs
- TypeUnloadedException.cs
- unsafenativemethodsother.cs
- XmlDeclaration.cs
- Memoizer.cs
- TemplateXamlParser.cs
- SpecularMaterial.cs
- WorkflowNamespace.cs
- HwndSourceParameters.cs
- DeclarativeCatalogPartDesigner.cs
- ProtocolProfile.cs
- ScaleTransform3D.cs
- Timer.cs
- GridErrorDlg.cs
- ResourceDictionaryCollection.cs
- HitTestResult.cs
- MethodBuilder.cs
- BindingMAnagerBase.cs
- ToolboxComponentsCreatedEventArgs.cs
- NativeMethods.cs
- BasePattern.cs
- ScriptControl.cs
- InlineCollection.cs
- EntityDataSourceDesignerHelper.cs
- ConfigurationValidatorAttribute.cs
- NameObjectCollectionBase.cs
- XmlUTF8TextWriter.cs
- Logging.cs
- TextBoxBase.cs
- CmsUtils.cs
- UnaryNode.cs
- DataGridViewColumnHeaderCell.cs
- Resources.Designer.cs
- Helper.cs
- CompiledRegexRunnerFactory.cs
- FixedTextSelectionProcessor.cs
- ItemContainerGenerator.cs