Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / AddIn / AddIn / System / Addin / MiniReflection / MiniConstructorInfo.cs / 1305376 / MiniConstructorInfo.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: MiniConstructorInfo ** ** Purpose: Represents a constructor. ** ===========================================================*/ using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Text; using System.AddIn.MiniReflection.MetadataReader; using System.Diagnostics.Contracts; namespace System.AddIn.MiniReflection { [Serializable] internal sealed class MiniConstructorInfo { private MiniParameterInfo[] _parameters; public MiniConstructorInfo(MiniParameterInfo[] parameters) { System.Diagnostics.Contracts.Contract.Requires(parameters != null); _parameters = parameters; } /* internal MiniConstructorInfo(System.Reflection.ConstructorInfo ctor) { System.Reflection.ParameterInfo[] parameters = ctor.GetParameters(); _parameters = new MiniParameterInfo[parameters.Length]; for (int i = 0; i < parameters.Length; i++) _parameters[i] = new MiniParameterInfo(new TypeInfo(parameters[i].ParameterType)); } */ public MiniParameterInfo[] GetParameters() { return _parameters; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================ ** ** Class: MiniConstructorInfo ** ** Purpose: Represents a constructor. ** ===========================================================*/ using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Text; using System.AddIn.MiniReflection.MetadataReader; using System.Diagnostics.Contracts; namespace System.AddIn.MiniReflection { [Serializable] internal sealed class MiniConstructorInfo { private MiniParameterInfo[] _parameters; public MiniConstructorInfo(MiniParameterInfo[] parameters) { System.Diagnostics.Contracts.Contract.Requires(parameters != null); _parameters = parameters; } /* internal MiniConstructorInfo(System.Reflection.ConstructorInfo ctor) { System.Reflection.ParameterInfo[] parameters = ctor.GetParameters(); _parameters = new MiniParameterInfo[parameters.Length]; for (int i = 0; i < parameters.Length; i++) _parameters[i] = new MiniParameterInfo(new TypeInfo(parameters[i].ParameterType)); } */ public MiniParameterInfo[] GetParameters() { return _parameters; } } } // 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
- DataGridViewAdvancedBorderStyle.cs
- Size3DValueSerializer.cs
- PlainXmlDeserializer.cs
- InvalidEnumArgumentException.cs
- DesignerActionTextItem.cs
- TypeSystem.cs
- ContractMapping.cs
- CellIdBoolean.cs
- NavigationProperty.cs
- LockCookie.cs
- RangeValidator.cs
- ComAdminInterfaces.cs
- PrintDocument.cs
- SuppressMergeCheckAttribute.cs
- TriggerActionCollection.cs
- ServicesUtilities.cs
- QueryExpr.cs
- ScrollData.cs
- _AutoWebProxyScriptEngine.cs
- ColumnMapTranslator.cs
- EntityDataSourceQueryBuilder.cs
- DynamicResourceExtensionConverter.cs
- TabItem.cs
- EmptyQuery.cs
- InputScopeManager.cs
- WorkflowMarkupElementEventArgs.cs
- ProviderCommandInfoUtils.cs
- MembershipValidatePasswordEventArgs.cs
- DataGridViewImageCell.cs
- CanExecuteRoutedEventArgs.cs
- SessionState.cs
- QuestionEventArgs.cs
- ArithmeticException.cs
- UserPreferenceChangingEventArgs.cs
- SerializationSectionGroup.cs
- Rectangle.cs
- TimeoutTimer.cs
- HtmlInputCheckBox.cs
- WebResponse.cs
- Int32Converter.cs
- ProxyManager.cs
- PenThreadPool.cs
- XPathNavigator.cs
- PerfCounterSection.cs
- DataContract.cs
- InputScopeNameConverter.cs
- ValidatedMobileControlConverter.cs
- Set.cs
- PeerTransportSecuritySettings.cs
- CharacterHit.cs
- WinFormsUtils.cs
- TextElementEnumerator.cs
- Constants.cs
- SettingsAttributes.cs
- TransactionTable.cs
- InternalPermissions.cs
- TransactionContextValidator.cs
- QueryGenerator.cs
- DataPager.cs
- WindowsFormsSectionHandler.cs
- ParameterInfo.cs
- AsymmetricKeyExchangeFormatter.cs
- DataGridTextBox.cs
- XmlSchemaIdentityConstraint.cs
- SmiEventStream.cs
- WmiPutTraceRecord.cs
- QuarticEase.cs
- Translator.cs
- TrackBar.cs
- XmlSchemaSimpleContentExtension.cs
- ProcessThread.cs
- HwndAppCommandInputProvider.cs
- ZipPackage.cs
- CmsInterop.cs
- Bezier.cs
- MenuItemCollectionEditor.cs
- RSACryptoServiceProvider.cs
- GeneralTransform3DGroup.cs
- HelpProvider.cs
- SelectManyQueryOperator.cs
- base64Transforms.cs
- SetterBaseCollection.cs
- _TransmitFileOverlappedAsyncResult.cs
- TextServicesProperty.cs
- InheritablePropertyChangeInfo.cs
- ServicePointManagerElement.cs
- HebrewCalendar.cs
- PageParserFilter.cs
- DefaultEventAttribute.cs
- ReceiveActivityDesignerTheme.cs
- ElementUtil.cs
- TreeViewItemAutomationPeer.cs
- ViewGenerator.cs
- HttpCacheVary.cs
- CollectionViewGroupRoot.cs
- HWStack.cs
- ExtendedPropertyCollection.cs
- DashStyles.cs
- WebPartAddingEventArgs.cs
- HttpCookiesSection.cs