Skip to content
Permalink
Browse files
  • Loading branch information
Timothy A. Bish committed Sep 3, 2010
1 parent ec7da2b commit 5b3a06bc8c4a0622f180fa2698937acbd4de6db1
Showing 1 changed file with 10 additions and 4 deletions.
@@ -227,10 +227,16 @@ public char GetChar(string key)
{
return (char) value;
}
else
{
throw new MessageFormatException(" cannot read a char from " + value.GetType().Name);
}
else if(value is String)
{
string svalue = value as string;
if(svalue.Length == 1)
{
return svalue.ToCharArray()[0];
}
}

throw new MessageFormatException(" cannot read a char from " + value.GetType().Name);
}
catch(FormatException ex)
{

0 comments on commit 5b3a06b

Please sign in to comment.