public override string ToString() { if (O == null) { return(""); } if (Attribute.GetCustomAttribute(I, typeof(PasswordPropertyTextAttribute)) != null) { using (Cry cry = new Cry()) { string ret = cry.to(O.ToString()); return(ret); } } if (O is Color) { return(ColorTranslator.ToHtml((Color)O)); } return(O.ToString()); }
protected string StringByPiObject(PropertyInfo _pi, Object _O) { if (_O == null) { return(""); } if (Attribute.GetCustomAttribute(_pi, typeof(PasswordPropertyTextAttribute)) != null) { using (Cry cry = new Cry()) { string ret = cry.to(_O.ToString()); return(ret); } } if (_O is Color) { return(ColorTr.ToWin32((Color)_O)); } return(_O.ToString()); }