Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Reflection / ParameterModifier.cs / 1305376 / ParameterModifier.cs
using System.Diagnostics.Contracts; // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== //[....] // namespace System.Reflection { using System; [Serializable] [System.Runtime.InteropServices.ComVisible(true)] public struct ParameterModifier { #region Private Data Members private bool[] _byRef; #endregion #region Constructor public ParameterModifier(int parameterCount) { if (parameterCount <= 0) throw new ArgumentException(Environment.GetResourceString("Arg_ParmArraySize")); Contract.EndContractBlock(); _byRef = new bool[parameterCount]; } #endregion #region Internal Members internal bool[] IsByRefArray { get { return _byRef; } } #endregion #region Public Members public bool this[int index] { get { return _byRef[index]; } set { _byRef[index] = value; } } #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. using System.Diagnostics.Contracts; // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== //[....] // namespace System.Reflection { using System; [Serializable] [System.Runtime.InteropServices.ComVisible(true)] public struct ParameterModifier { #region Private Data Members private bool[] _byRef; #endregion #region Constructor public ParameterModifier(int parameterCount) { if (parameterCount <= 0) throw new ArgumentException(Environment.GetResourceString("Arg_ParmArraySize")); Contract.EndContractBlock(); _byRef = new bool[parameterCount]; } #endregion #region Internal Members internal bool[] IsByRefArray { get { return _byRef; } } #endregion #region Public Members public bool this[int index] { get { return _byRef[index]; } set { _byRef[index] = value; } } #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- RowType.cs
- cookieexception.cs
- DataColumnCollection.cs
- PropertyGridCommands.cs
- WeakReferenceList.cs
- FixedHighlight.cs
- Soap12ProtocolImporter.cs
- WebPartManager.cs
- FieldTemplateUserControl.cs
- PropertyDescriptorCollection.cs
- _DynamicWinsockMethods.cs
- AnimationTimeline.cs
- TaskExceptionHolder.cs
- ObjectDataProvider.cs
- StylusShape.cs
- PointUtil.cs
- EventLogPermissionHolder.cs
- FontResourceCache.cs
- SqlTriggerContext.cs
- Geometry3D.cs
- ContainerSelectorGlyph.cs
- OleDbParameter.cs
- GridViewRowCollection.cs
- BevelBitmapEffect.cs
- FilterQuery.cs
- ChangeConflicts.cs
- QilScopedVisitor.cs
- MediaScriptCommandRoutedEventArgs.cs
- DataGridViewCellEventArgs.cs
- ListViewInsertionMark.cs
- Rect3DConverter.cs
- precedingquery.cs
- URI.cs
- AsyncDataRequest.cs
- InheritanceAttribute.cs
- BuildProvider.cs
- Misc.cs
- ValidationResult.cs
- EmptyEnumerable.cs
- MulticastDelegate.cs
- CapabilitiesRule.cs
- HttpContext.cs
- ControlParameter.cs
- ListBoxAutomationPeer.cs
- PaintValueEventArgs.cs
- OleDbPermission.cs
- NamespaceEmitter.cs
- ListSourceHelper.cs
- CompareInfo.cs
- CodeIdentifiers.cs
- DrawListViewItemEventArgs.cs
- InvariantComparer.cs
- QilXmlWriter.cs
- RayHitTestParameters.cs
- CompositeActivityTypeDescriptorProvider.cs
- tooltip.cs
- BindToObject.cs
- CompressionTracing.cs
- OrderedDictionary.cs
- WindowsProgressbar.cs
- ContextStaticAttribute.cs
- SystemFonts.cs
- XmlCharCheckingReader.cs
- DataGridViewBand.cs
- DateTimeOffsetAdapter.cs
- ListParagraph.cs
- StoreItemCollection.Loader.cs
- GraphicsContainer.cs
- UIElementCollection.cs
- ImportCatalogPart.cs
- Overlapped.cs
- ListChangedEventArgs.cs
- WorkflowOperationInvoker.cs
- Stroke.cs
- SqlProcedureAttribute.cs
- MsdtcClusterUtils.cs
- PartialArray.cs
- PropertyGridView.cs
- SqlDataRecord.cs
- EndpointAddressProcessor.cs
- EncodingDataItem.cs
- RoleManagerModule.cs
- WebBrowserPermission.cs
- PeekCompletedEventArgs.cs
- DataGridViewBand.cs
- SoapMessage.cs
- ToolBarOverflowPanel.cs
- TextFormatter.cs
- StatusBarPanelClickEvent.cs
- DataKey.cs
- HebrewNumber.cs
- WindowsToolbar.cs
- DesignerContextDescriptor.cs
- DoWorkEventArgs.cs
- DisplayMemberTemplateSelector.cs
- ToolStripSplitButton.cs
- CreateSequenceResponse.cs
- AlgoModule.cs
- CachedPathData.cs
- DbConnectionPoolIdentity.cs