* xbuild/Microsoft.Common.targets (_RecordCleanFile): Append list of
[mcs.git] / class / System.ServiceModel / System.ServiceModel.Configuration / IPAddressConverter.cs
blob290b0e715851e1d9b71d2f79d1bef7bfd40e3998
1 using System;
2 using System.Collections.Generic;
3 using System.Text;
4 using System.ComponentModel;
5 using System.Net;
7 namespace System.ServiceModel.Configuration
9 class IPAddressConverter
10 : TypeConverter
12 public override bool CanConvertFrom (ITypeDescriptorContext context, Type sourceType) {
13 return sourceType == typeof (string);
16 public override object ConvertFrom (ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value) {
17 return IPAddress.Parse ((string) value);