bool val; string input; input = bool.TrueString; val = bool.Parse(input); Console.WriteLine("'{0}' parsed as {1}", input, val); // The example displays the following output: // 'True' parsed as True
Boolean.TrueString 將布爾值 true 表示為一個字符串。 此字段為只讀
bool val; string input; input = bool.TrueString; val = bool.Parse(input); Console.WriteLine("'{0}' parsed as {1}", input, val); // The example displays the following output: // 'True' parsed as True
Boolean.TrueString 將布爾值 true 表示為一個字符串。 此字段為只讀
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。