Example #1
0
        public static string XToTitle(X x, XPropertyInfo xproperty, IStringLocalizer xstring)
        {
            string key = XToKey(xproperty);

            key += "_string";
            string value = xstring[key];

            if (key == value)
            {
                XType     _string = x.XTypeOf(typeof(_XString));
                XObject[] xattrs  = xproperty.XGetCustomAttributes(_string, true);
                if (XToTitle(xattrs, out value) == false)
                {
                    value = "";
                }
            }
            return(value);
        }
Example #2
0
 public static bool XIsImplicit(XPropertyInfo xprop, X x)
 {
     return(xprop.XGetCustomAttributes(x.XTypeOf(typeof(_XImplicit)), false).Length > 0);
 }