ColumnDescription(SerializationInfo info, StreamingContext context)
{
foreach (SerializationEntry entry in info)
{
switch (entry.Name)
{
case "name": name = (string)entry.Value; break;
case "type": type = Type.GetType((string)entry.Value); break;
case "unit": unit = (string)entry.Value; break;
case "format": format = (string)entry.Value; break;
case "implementations": implementations = (Implementations)entry.Value; break;
case "propertyRoutes": propertyRoutes = (PropertyRoute[])entry.Value; break;
case "propertyRoute": propertyRoutes = new[] { (PropertyRoute)entry.Value }; break;
case "displayName": displayName = (string)entry.Value; break;
}
}
}
}