public static string XToTitle(X x, XFieldInfo xfield, IStringLocalizer xstring) { string key = XToKey(xfield); key += "_string"; string value = xstring[key]; if (key == value) { XType _string = x.XTypeOf(typeof(_XString)); XObject[] xattrs = xfield.XGetCustomAttributes(_string, true); if (XToTitle(xattrs, out value) == false) { value = ""; } } return(value); }
public static bool XIsImplicit(XFieldInfo xfield, X x) { return(xfield.XGetCustomAttributes(x.XTypeOf(typeof(_XImplicit)), false).Length > 0); }