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
- ProviderUtil.cs
- ToolTipService.cs
- SplitterDesigner.cs
- TemplateParser.cs
- Odbc32.cs
- SchemaCollectionCompiler.cs
- ProfileGroupSettingsCollection.cs
- ErrorRuntimeConfig.cs
- SqlUtil.cs
- BamlWriter.cs
- FunctionDetailsReader.cs
- AnimationStorage.cs
- HTTPRemotingHandler.cs
- TagMapInfo.cs
- GeometryDrawing.cs
- TrackPointCollection.cs
- TakeQueryOptionExpression.cs
- MenuEventArgs.cs
- Axis.cs
- NullableLongSumAggregationOperator.cs
- FileSystemInfo.cs
- SecurityAppliedMessage.cs
- HMACSHA384.cs
- CAGDesigner.cs
- RIPEMD160.cs
- EdmProperty.cs
- BuildDependencySet.cs
- WindowsScrollBar.cs
- StringWriter.cs
- NetTcpBindingElement.cs
- TemplateColumn.cs
- ArgumentDirectionHelper.cs
- ListViewItem.cs
- PartialCachingControl.cs
- Axis.cs
- IPHostEntry.cs
- CollectionChangeEventArgs.cs
- StatusBarPanel.cs
- ALinqExpressionVisitor.cs
- DbConnectionPoolIdentity.cs
- MultiPropertyDescriptorGridEntry.cs
- SQLString.cs
- MonthCalendar.cs
- GlyphElement.cs
- Label.cs
- EntryIndex.cs
- TextRange.cs
- PrefixQName.cs
- CodeDOMProvider.cs
- ControlTemplate.cs
- ManifestBasedResourceGroveler.cs
- XmlDocument.cs
- HashJoinQueryOperatorEnumerator.cs
- MetabaseReader.cs
- AxisAngleRotation3D.cs
- DataGridState.cs
- Rect3D.cs
- ISessionStateStore.cs
- EntityConnection.cs
- Stack.cs
- RangeValidator.cs
- ExpressionVisitorHelpers.cs
- EnumerableValidator.cs
- ReflectionTypeLoadException.cs
- InstanceView.cs
- Win32Exception.cs
- DefaultValidator.cs
- RoleManagerEventArgs.cs
- TextEmbeddedObject.cs
- GPRECTF.cs
- DbConvert.cs
- LinkClickEvent.cs
- File.cs
- CallbackHandler.cs
- SmiXetterAccessMap.cs
- LineBreakRecord.cs
- TransactionException.cs
- FileLoadException.cs
- HtmlPhoneCallAdapter.cs
- ButtonStandardAdapter.cs
- DesignerEditorPartChrome.cs
- ContractHandle.cs
- ConfigUtil.cs
- XPathException.cs
- DesignerDataTableBase.cs
- Matrix3DStack.cs
- GroupBoxRenderer.cs
- AssemblyAssociatedContentFileAttribute.cs
- GlyphCollection.cs
- ThicknessConverter.cs
- ToolStripDropDownClosingEventArgs.cs
- CreateWorkflowOwnerCommand.cs
- TopClause.cs
- ipaddressinformationcollection.cs
- Visitor.cs
- EventLogPermissionAttribute.cs
- DoubleLinkList.cs
- SimpleHandlerFactory.cs
- RichTextBoxAutomationPeer.cs
- QueueProcessor.cs