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
- WorkflowLayouts.cs
- TraceContextRecord.cs
- DynamicArgumentDialog.cs
- dataobject.cs
- HelpInfo.cs
- SafeLocalMemHandle.cs
- x509utils.cs
- WorkflowMessageEventHandler.cs
- Window.cs
- WhereQueryOperator.cs
- IPEndPointCollection.cs
- IPHostEntry.cs
- EntityDataSourceDataSelection.cs
- HtmlLink.cs
- WebPartZoneBase.cs
- DebugView.cs
- NavigationProperty.cs
- EventToken.cs
- StructuralCache.cs
- ImageMetadata.cs
- TypeUsage.cs
- PasswordRecovery.cs
- SpellCheck.cs
- _UriSyntax.cs
- TrackingProfile.cs
- DateTimeEditor.cs
- WebConvert.cs
- ConfigXmlCDataSection.cs
- _IPv6Address.cs
- TableLayoutColumnStyleCollection.cs
- SmtpMail.cs
- ServiceDesigner.cs
- XPathPatternParser.cs
- ShapingWorkspace.cs
- Columns.cs
- CompositeFontFamily.cs
- SmiMetaDataProperty.cs
- SystemNetHelpers.cs
- IntSecurity.cs
- DBCommand.cs
- CommandID.cs
- LoginCancelEventArgs.cs
- IteratorDescriptor.cs
- TextRunCacheImp.cs
- FileCodeGroup.cs
- AssemblyResourceLoader.cs
- LineInfo.cs
- Helper.cs
- NativeCppClassAttribute.cs
- RectangleHotSpot.cs
- QilStrConcat.cs
- StorageAssociationTypeMapping.cs
- Msec.cs
- MemberPath.cs
- GlobalProxySelection.cs
- DataGridViewTextBoxCell.cs
- DragAssistanceManager.cs
- PaperSize.cs
- BuildProvider.cs
- MessagePropertyDescription.cs
- PathNode.cs
- EntityContainer.cs
- LinkButton.cs
- UserPreferenceChangedEventArgs.cs
- UInt32Converter.cs
- GeometryDrawing.cs
- EmptyStringExpandableObjectConverter.cs
- PlanCompilerUtil.cs
- ValidationEventArgs.cs
- nulltextnavigator.cs
- UnionQueryOperator.cs
- WebHttpBehavior.cs
- SymbolEqualComparer.cs
- HandleCollector.cs
- TdsRecordBufferSetter.cs
- DuplicateWaitObjectException.cs
- GZipDecoder.cs
- LocalValueEnumerator.cs
- MSAAEventDispatcher.cs
- AsymmetricAlgorithm.cs
- NominalTypeEliminator.cs
- SamlAction.cs
- remotingproxy.cs
- DataFormats.cs
- DirectoryObjectSecurity.cs
- XsltConvert.cs
- HitTestWithGeometryDrawingContextWalker.cs
- HttpClientCertificate.cs
- CellLabel.cs
- CodeExpressionStatement.cs
- RoutedPropertyChangedEventArgs.cs
- HttpPostedFile.cs
- SecurityPolicySection.cs
- AttributeUsageAttribute.cs
- RemoteWebConfigurationHost.cs
- ResourceContainer.cs
- SafeProcessHandle.cs
- DefaultValueConverter.cs
- EncoderExceptionFallback.cs
- EntityDataSourceContextDisposingEventArgs.cs