コード例 #1
0
 public static string BooleanToText(bool value)
 {
     if (value)
     {
         return(ReSourceManage.GetResource(BooleanValue.True));
     }
     return(ReSourceManage.GetResource(BooleanValue.False));
 }
コード例 #2
0
        public static bool ToBooLean(string value)
        {
            string trueValue = ReSourceManage.GetResource(BooleanValue.True);

            if (string.Compare(trueValue, value, true) == 0)
            {
                return(true);
            }
            return(false);
        }