জয়েন লগইন

সি# variable ফাংশন

🌈সি# variable ফাংশন কি?

📋সি# variable ফাংশন হলো ফাংশন ভেরিয়েবলে সংরক্ষণ করার পদ্ধতি।

⚒️সি# variable ফাংশন ফাংশন ভেরিয়েবলে সংরক্ষণ করতে ব্যবহৃত হয়।

সি# variable ফাংশন ফাংশন ভেরিয়েবলে সংরক্ষণ করার উদাহরণ।

csharp

using System;
namespace MyApplication {
  class Program {
    static void Main(string[] args) {

  static string Message() {
    return "হ্যালো বিশ্ব";
  }

  Func<string> function = Message;

  Console.Write(function());

    }
  }
}