public static string GetNameOrSymbol(this IVortexElement element) { return(string.IsNullOrEmpty(element.AttributeName) ? element.GetSymbolTail() : element.AttributeName); }
public static string NameOrSymbol(IVortexElement obj) { return(string.IsNullOrEmpty(obj.AttributeName) ? obj.GetSymbolTail() : obj.AttributeName); }
public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { IVortexElement val = value as IVortexElement; return(val != null?string.IsNullOrEmpty(val.AttributeName) ? val.GetSymbolTail() : val.AttributeName : "Missing object information"); }