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
- ProtectedConfigurationProviderCollection.cs
- ToolStripKeyboardHandlingService.cs
- EntityWrapperFactory.cs
- BaseComponentEditor.cs
- ListInitExpression.cs
- DataTableClearEvent.cs
- LineSegment.cs
- linebase.cs
- StyleCollectionEditor.cs
- Mutex.cs
- MemoryFailPoint.cs
- Transform.cs
- DataRelationPropertyDescriptor.cs
- EventPrivateKey.cs
- Task.cs
- ReadOnlyCollectionBuilder.cs
- FunctionDescription.cs
- BindingEntityInfo.cs
- AnonymousIdentificationModule.cs
- XmlSchemaSimpleTypeRestriction.cs
- ExpressionVisitor.cs
- XmlSchemaIdentityConstraint.cs
- AssemblyCollection.cs
- FunctionNode.cs
- COM2EnumConverter.cs
- Walker.cs
- HttpContext.cs
- PlainXmlDeserializer.cs
- ColorConvertedBitmapExtension.cs
- XPathLexer.cs
- TypedServiceChannelBuilder.cs
- GridEntryCollection.cs
- CharacterMetrics.cs
- ArithmeticException.cs
- OdbcParameter.cs
- KeyFrames.cs
- DefaultValidator.cs
- MultiByteCodec.cs
- ComponentConverter.cs
- RotateTransform3D.cs
- XmlSerializerNamespaces.cs
- PropertiesTab.cs
- SimpleApplicationHost.cs
- StorageRoot.cs
- AuthenticationConfig.cs
- EventLogReader.cs
- Transform3DGroup.cs
- TraceHwndHost.cs
- TransactionBehavior.cs
- BlockingCollection.cs
- SystemIPGlobalProperties.cs
- ComponentEvent.cs
- OletxDependentTransaction.cs
- Thread.cs
- HttpApplicationFactory.cs
- EnumerableRowCollectionExtensions.cs
- MetadataItem.cs
- SendMailErrorEventArgs.cs
- MDIWindowDialog.cs
- MulticastNotSupportedException.cs
- entityreference_tresulttype.cs
- InsufficientMemoryException.cs
- LayoutEditorPart.cs
- StringComparer.cs
- XAMLParseException.cs
- TypeSystem.cs
- OleCmdHelper.cs
- Zone.cs
- Util.cs
- DataListCommandEventArgs.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- WebConfigurationHostFileChange.cs
- InfiniteIntConverter.cs
- ScalarOps.cs
- CreateParams.cs
- Stylus.cs
- PersistNameAttribute.cs
- XmlNavigatorFilter.cs
- TabPanel.cs
- RegexNode.cs
- RuleRef.cs
- TextServicesCompartmentEventSink.cs
- SemanticBasicElement.cs
- ProgressBar.cs
- XmlSchemaExternal.cs
- HttpApplication.cs
- QuotedPrintableStream.cs
- FlowSwitch.cs
- SignedPkcs7.cs
- InProcStateClientManager.cs
- Separator.cs
- SafeWaitHandle.cs
- DependencyPropertyConverter.cs
- XmlSchemaException.cs
- CheckBoxAutomationPeer.cs
- DeviceOverridableAttribute.cs
- WebBrowserContainer.cs
- ClientRoleProvider.cs
- Compiler.cs
- DependencyPropertyChangedEventArgs.cs