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
- SafeCertificateContext.cs
- WebBrowser.cs
- SecurityDescriptor.cs
- ImmutableDispatchRuntime.cs
- IncrementalCompileAnalyzer.cs
- OutputCacheSettings.cs
- FrameworkElement.cs
- SqlProviderServices.cs
- BaseEntityWrapper.cs
- DataServiceConfiguration.cs
- XmlIncludeAttribute.cs
- XmlSerializableServices.cs
- ExpandCollapsePattern.cs
- WindowCollection.cs
- SqlDataRecord.cs
- XmlMapping.cs
- FixUpCollection.cs
- SchemaLookupTable.cs
- DataReceivedEventArgs.cs
- ResourceContainer.cs
- TraceFilter.cs
- DataGrid.cs
- MetadataItem_Static.cs
- NonClientArea.cs
- DecimalAnimationUsingKeyFrames.cs
- DataGridClipboardHelper.cs
- RoleGroupCollection.cs
- CommandEventArgs.cs
- XmlLoader.cs
- XPathBinder.cs
- JpegBitmapEncoder.cs
- InputLangChangeRequestEvent.cs
- Misc.cs
- CheckBox.cs
- QuaternionValueSerializer.cs
- DataServiceQueryException.cs
- OutputCacheProfileCollection.cs
- Point.cs
- XmlSchemaAttributeGroup.cs
- SettingsPropertyNotFoundException.cs
- TaskDesigner.cs
- EntityContainerRelationshipSet.cs
- GlyphRun.cs
- FixedTextContainer.cs
- HandlerFactoryCache.cs
- AnnotationObservableCollection.cs
- InternalConfigRoot.cs
- SignatureTargetIdManager.cs
- ActivityExecutor.cs
- RegexWriter.cs
- DataBindingExpressionBuilder.cs
- SettingsProviderCollection.cs
- ExpressionVisitor.cs
- TriggerBase.cs
- FixedDocumentPaginator.cs
- GZipDecoder.cs
- ObjectHelper.cs
- ProxyHwnd.cs
- HandleCollector.cs
- MetadataArtifactLoader.cs
- PagedDataSource.cs
- WebZone.cs
- PackagingUtilities.cs
- RequestDescription.cs
- RangeContentEnumerator.cs
- DmlSqlGenerator.cs
- nulltextnavigator.cs
- TripleDES.cs
- ConfigXmlSignificantWhitespace.cs
- XmlQueryType.cs
- BuilderPropertyEntry.cs
- MissingMemberException.cs
- ImportCatalogPart.cs
- FormsAuthenticationCredentials.cs
- EventLogTraceListener.cs
- CancelEventArgs.cs
- Bits.cs
- StringReader.cs
- ChildTable.cs
- CurrencyManager.cs
- XmlQueryRuntime.cs
- ComboBox.cs
- mda.cs
- ScriptControlManager.cs
- XmlAttributeCollection.cs
- StyleCollectionEditor.cs
- CollectionView.cs
- Vector3DKeyFrameCollection.cs
- MultiTargetingUtil.cs
- AssociationTypeEmitter.cs
- DataGridColumnHeaderItemAutomationPeer.cs
- FolderLevelBuildProviderAppliesToAttribute.cs
- ConstraintManager.cs
- ByteAnimationBase.cs
- TrustManager.cs
- TimeIntervalCollection.cs
- FrameworkContextData.cs
- DropDownList.cs
- PerformanceCounterPermissionEntry.cs
- XmlSchemaSimpleContent.cs