সম্পাদনা
using System; class Program { static string User(string name) { if (name == "") { throw new Exception("ডেটা পাওয়া যায়নি"); } return name; } static void Main() { try { Console.WriteLine(User("আরিফ")); Console.WriteLine(User("")); } catch (Exception error) { Console.WriteLine(error.Message); } } }
পূর্বরূপ