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