Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / ndp / fx / src / xsp / System / Web / Extensions / Script / Services / WebServiceParameterData.cs / 1 / WebServiceParameterData.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System.Reflection; namespace System.Web.Script.Services { internal class WebServiceParameterData { private ParameterInfo _param; private int _index; // Index of the parameter in the method private string _paramName; private Type _paramType; internal WebServiceParameterData(ParameterInfo param, int index) { _param = param; _index = index; } // This constructor is only used by indigo internal WebServiceParameterData(string paramName, Type paramType, int index) { _paramName = paramName; _paramType = paramType; _index = index; } internal int Index { get { return _index; } } internal ParameterInfo ParameterInfo { get { return _param; } } internal string ParameterName { get { if (_param != null) { return _param.Name; } else { return _paramName; } } } internal Type ParameterType { get { if (_param != null) { return _param.ParameterType; } else { return _paramType; } } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System.Reflection; namespace System.Web.Script.Services { internal class WebServiceParameterData { private ParameterInfo _param; private int _index; // Index of the parameter in the method private string _paramName; private Type _paramType; internal WebServiceParameterData(ParameterInfo param, int index) { _param = param; _index = index; } // This constructor is only used by indigo internal WebServiceParameterData(string paramName, Type paramType, int index) { _paramName = paramName; _paramType = paramType; _index = index; } internal int Index { get { return _index; } } internal ParameterInfo ParameterInfo { get { return _param; } } internal string ParameterName { get { if (_param != null) { return _param.Name; } else { return _paramName; } } } internal Type ParameterType { get { if (_param != null) { return _param.ParameterType; } else { return _paramType; } } } } } // 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
- WorkflowTimerService.cs
- BaseCollection.cs
- TimeoutException.cs
- SuppressIldasmAttribute.cs
- DataGridHeaderBorder.cs
- XsltLibrary.cs
- ToolStripDropDownDesigner.cs
- SynchronizationFilter.cs
- PostBackTrigger.cs
- PointUtil.cs
- ManagedCodeMarkers.cs
- ObjectPersistData.cs
- KnownColorTable.cs
- SqlParameter.cs
- DockPanel.cs
- InheritanceAttribute.cs
- AuthenticationSection.cs
- RegexGroup.cs
- OutputWindow.cs
- DiscardableAttribute.cs
- IUnknownConstantAttribute.cs
- MonthCalendarDesigner.cs
- RangeValidator.cs
- XmlSchemaType.cs
- CancellationHandlerDesigner.cs
- ValidatedMobileControlConverter.cs
- safePerfProviderHandle.cs
- PointAnimationUsingKeyFrames.cs
- ValidationEventArgs.cs
- TypeUtil.cs
- SelectedGridItemChangedEvent.cs
- TreeNodeCollection.cs
- Transform.cs
- Button.cs
- QEncodedStream.cs
- ScriptControlManager.cs
- SqlGatherConsumedAliases.cs
- MobileUITypeEditor.cs
- ColumnProvider.cs
- DependencyPropertyDescriptor.cs
- DbProviderFactory.cs
- SqlUserDefinedAggregateAttribute.cs
- SubMenuStyleCollection.cs
- EnumValidator.cs
- Control.cs
- CacheMemory.cs
- MethodBuilderInstantiation.cs
- Trace.cs
- DataGridViewLinkColumn.cs
- SqlBulkCopy.cs
- TypeLibConverter.cs
- DataRecordObjectView.cs
- MinimizableAttributeTypeConverter.cs
- EntityDataSource.cs
- recordstate.cs
- BCryptHashAlgorithm.cs
- CapabilitiesState.cs
- CompiledQueryCacheEntry.cs
- PeerNameRecordCollection.cs
- ExtractedStateEntry.cs
- XXXOnTypeBuilderInstantiation.cs
- QilChoice.cs
- CompilationSection.cs
- OleDbEnumerator.cs
- ResizeGrip.cs
- TypeInformation.cs
- CrossSiteScriptingValidation.cs
- WindowsGrip.cs
- HtmlEncodedRawTextWriter.cs
- EventDriven.cs
- ComplexLine.cs
- XmlSchemaObjectTable.cs
- ConfigurationFileMap.cs
- WebEventTraceProvider.cs
- CombinedGeometry.cs
- ImpersonationContext.cs
- SecurityUniqueId.cs
- XmlNullResolver.cs
- CodeAttributeArgumentCollection.cs
- StringFreezingAttribute.cs
- DigitShape.cs
- Mutex.cs
- DrawingState.cs
- TextEncodedRawTextWriter.cs
- ThumbAutomationPeer.cs
- ValidationErrorEventArgs.cs
- ChooseAction.cs
- DependencyPropertyHelper.cs
- CompositeCollectionView.cs
- Message.cs
- PolyBezierSegment.cs
- ConnectionStringEditor.cs
- WeakReadOnlyCollection.cs
- DirectoryGroupQuery.cs
- MailBnfHelper.cs
- AssemblyName.cs
- RadioButtonPopupAdapter.cs
- smtpconnection.cs
- AsymmetricSecurityProtocol.cs
- ClientBuildManagerCallback.cs