কম্পিউটার টিউটোরিয়াল

C#-এ Uri.EscapeDataString(String) মেথড

সিনট্যাক্স

public static string EscapeDataString (string str);

উপরোক্তে, স্ট্রিং str হলো এস্কেপ করার জন্য স্ট্রিং।

উদাহরণ

using System; 
public class Demo { 
    public static void Main(){ 
        string URI1 = "https://www.tutorialspoint.com/index.htm"; 
        Console.WriteLine("URI = " + URI1); 
        string URI2 = "https://www.tutorialspoint.com/"; 
        Console.WriteLine("URI = " + URI2); 
        Console.WriteLine("\nEscaped string (URI1) = " + Uri.EscapeDataString(URI1)); 
        Console.WriteLine("Escaped string (URI2) = " + Uri.EscapeDataString(URI2)); 
    } 
}

আউটপুট

URI = https://www.tutorialspoint.com/index.htm URI = https://www.tutorialspoint.com/ Escaped string (URI1) = https%3A%2F%2Fwww.tutorialspoint.com%2Findex.htm Escaped string (URI2) = https%3A%2F%2Fwww.tutorialspoint.com%2F
  1. C#-এ Uri.MakeRelativeUri() মেথড: দুটি URI-এর পার্থক্য নির্ণয়

  2. C#-এ String.PadRight() মেথড: স্ট্রিংয়ের ডানে প্যাডিং যোগ করা

  3. C# SingleOrDefault() পদ্ধতি

  4. C#-এ String.Join() মেথড ব্যবহার করে স্ট্রিং অ্যারের উপাদানগুলো একত্রিত করা