Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Extensions / Script / Services / WebServiceParameterData.cs / 1305376 / 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
- UrlMappingsModule.cs
- Page.cs
- RemotingConfiguration.cs
- MaskedTextBox.cs
- HtmlForm.cs
- GenericUriParser.cs
- AnimatedTypeHelpers.cs
- VisualCollection.cs
- TextChange.cs
- SafeSecurityHelper.cs
- ScriptBehaviorDescriptor.cs
- RijndaelManaged.cs
- XamlPointCollectionSerializer.cs
- NameValuePermission.cs
- QilName.cs
- WindowsAltTab.cs
- FontWeight.cs
- DiffuseMaterial.cs
- HitTestParameters3D.cs
- GridViewCancelEditEventArgs.cs
- TextServicesDisplayAttributePropertyRanges.cs
- HwndSource.cs
- AttributeCollection.cs
- InvalidOleVariantTypeException.cs
- SecurityProtocolFactory.cs
- EntityContainerAssociationSet.cs
- CryptoApi.cs
- DesignerVerbCollection.cs
- ArgumentOutOfRangeException.cs
- EmbeddedMailObjectsCollection.cs
- ScrollViewerAutomationPeer.cs
- PipelineModuleStepContainer.cs
- ClientProtocol.cs
- QuaternionAnimationUsingKeyFrames.cs
- NumericUpDownAcceleration.cs
- DecoderBestFitFallback.cs
- GridItem.cs
- SizeAnimationUsingKeyFrames.cs
- StorageInfo.cs
- DataServiceRequestOfT.cs
- ExcludePathInfo.cs
- ToolStrip.cs
- PathSegment.cs
- PropertyGeneratedEventArgs.cs
- AssemblyAttributesGoHere.cs
- EmptyImpersonationContext.cs
- SystemTcpConnection.cs
- VoiceChangeEventArgs.cs
- SingleSelectRootGridEntry.cs
- Substitution.cs
- CustomValidator.cs
- SQLGuidStorage.cs
- TextLineResult.cs
- InvalidEnumArgumentException.cs
- DialogWindow.cs
- OrderedEnumerableRowCollection.cs
- XmlnsDictionary.cs
- TreeView.cs
- FrameDimension.cs
- RenamedEventArgs.cs
- Attributes.cs
- SqlCommandAsyncResult.cs
- EnumValAlphaComparer.cs
- Interlocked.cs
- HostedHttpContext.cs
- PrimaryKeyTypeConverter.cs
- SpellerInterop.cs
- ScrollChrome.cs
- XmlSchemaChoice.cs
- Ops.cs
- ChildChangedEventArgs.cs
- RuleInfoComparer.cs
- AsymmetricKeyExchangeDeformatter.cs
- EventOpcode.cs
- UniqueEventHelper.cs
- UnhandledExceptionEventArgs.cs
- MenuItemBindingCollection.cs
- ListSourceHelper.cs
- NumberFormatInfo.cs
- ClientProxyGenerator.cs
- DataViewManager.cs
- recordstatefactory.cs
- CodeValidator.cs
- XhtmlBasicImageAdapter.cs
- WebSysDefaultValueAttribute.cs
- SystemGatewayIPAddressInformation.cs
- TextElementEnumerator.cs
- EventRouteFactory.cs
- XmlCollation.cs
- XmlCollation.cs
- TabletDevice.cs
- BindToObject.cs
- SQLInt64.cs
- DeclarativeExpressionConditionDeclaration.cs
- ClaimSet.cs
- XmlKeywords.cs
- SmiContext.cs
- CompositionTarget.cs
- TreePrinter.cs
- SafeFileMapViewHandle.cs