/WCFWebApi/prototype/Microsoft.ApplicationServer.HttpEnhancements/System/ServiceModel/Description/TypeLoader.cs
C# | 25 lines | 20 code | 2 blank | 3 comment | 1 complexity | 0c897605aee6bb141d406f3e1438171c MD5 | raw file
Possible License(s): CC-BY-SA-3.0, Apache-2.0
- // <copyright>
- // Copyright (c) Microsoft Corporation. All rights reserved.
- // </copyright>
-
- namespace System.ServiceModel.Description
- {
- using System;
- using Reflection;
-
- internal class TypeLoader
- {
- public static Type GetParameterType(ParameterInfo parameterInfo)
- {
- Type parameterType = parameterInfo.ParameterType;
- if (parameterType.IsByRef)
- {
- return parameterType.GetElementType();
- }
- else
- {
- return parameterType;
- }
- }
- }
- }