public override object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
 {
     if (value == null)
     {
         return("");
     }
     return(MetadataUtilities.OccurrenceToString(value as MetadataDefinition));
 }
 public override object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
 {
     if (value == null)
     {
         return("");
     }
     if (!(value is MetadataDataType))
     {
         return("");
     }
     return(MetadataUtilities.DataTypeToString((MetadataDataType)value));
 }
        public override object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            bool isRepeatable = (bool)value;

            return(MetadataUtilities.RepeatableToString(isRepeatable));
        }