Ref parameter was not covered by ParameterInfo.IsOut. Fixed bug #696784.
[mono.git] / mcs / class / System.ServiceModel / System.ServiceModel.Configuration / IPAddressConverter.cs
1 using System;
2 using System.Collections.Generic;
3 using System.Text;
4 using System.ComponentModel;
5 using System.Net;
6
7 namespace System.ServiceModel.Configuration
8 {
9         class IPAddressConverter
10          : TypeConverter
11         {
12                 public override bool CanConvertFrom (ITypeDescriptorContext context, Type sourceType) {
13                         return sourceType == typeof (string);
14                 }
15
16                 public override object ConvertFrom (ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value) {
17                         return IPAddress.Parse ((string) value);
18                 }
19         }
20 }